优化火石机构

This commit is contained in:
somunslotus 2026-01-26 11:04:45 +08:00
parent 7461862bbd
commit 159533078e
1 changed files with 5 additions and 4 deletions

View File

@ -27,7 +27,6 @@ import com.ruoyi.system.mapper.*;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.ISysRoleService;
import com.ruoyi.system.service.ISysUserService;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -100,6 +99,8 @@ public class SysUserServiceImpl implements ISysUserService {
private String bindRoleUrl;
@Value("${uap.changePwdUrl}")
private String changePwdUrl;
@Value("${uap.orgId}")
private String orgId;
@Value("${uap.tenantId}")
private String tenantId;
@Value("${uap.adminRoleId}")
@ -298,14 +299,14 @@ public class SysUserServiceImpl implements ISysUserService {
.fluentPut("userType", 1)
.fluentPut("userSource", 1)
.fluentPut("status", Constant.State_valid)
.fluentPut("orgId", 1)
.fluentPut("orgId", orgId)
.fluentPut("orgName", "统一认证平台机构")
.fluentPut("phone", user.getPhonenumber())
.fluentPut("email", user.getEmail())
.fluentPut("remark", user.getRemark()));
String body = HttpUtil.createPost(uapUrl + addUserUrl + tenantId).body(userInfo.toJSONString()).execute().body();
System.out.println("-------------------body-------------" + body);
System.out.println("--------body:" + body);
cn.hutool.json.JSONObject bodyJson = new cn.hutool.json.JSONObject(body);
if (!(Boolean) bodyJson.get("flag")) {
throw new Exception("新增火石平台用户失败:" + bodyJson.get("message"));
@ -456,7 +457,7 @@ public class SysUserServiceImpl implements ISysUserService {
.fluentPut("userType", 1)
.fluentPut("userSource", 1)
.fluentPut("status", Constant.State_valid)
.fluentPut("orgId", 1)
.fluentPut("orgId", orgId)
.fluentPut("orgName", "统一认证平台机构")
.fluentPut("phone", user.getPhonenumber())
.fluentPut("email", user.getEmail())