Browse Source

对接火石登录登出

dev-uap
chenzhihang 8 months ago
parent
commit
ca4a92e508
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

+ 2
- 2
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java View File

@@ -428,7 +428,7 @@ public class SysUserServiceImpl implements ISysUserService {
.fluentPut("email", user.getEmail())
.fluentPut("remark", user.getRemark())
);
String body = HttpUtil.createRequest(Method.PUT, updateUserUrl).body(updateUserInfo.toString()).execute().body();
String body = HttpUtil.createRequest(Method.PUT, uapUrl + updateUserUrl + tenantId).body(updateUserInfo.toString()).execute().body();
cn.hutool.json.JSONObject bodyJson = new cn.hutool.json.JSONObject(body);
if (!(Boolean) bodyJson.get("flag")) {
throw new Exception("更新火石平台用户失败");
@@ -600,7 +600,7 @@ public class SysUserServiceImpl implements ISysUserService {
JSONObject deleteUserInfo = new JSONObject()
.fluentPut("id", user.getUapId())
.fluentPut("loginName", user.getUserName());
String body = HttpUtil.createPost(deleteUserUrl).body(deleteUserInfo.toJSONString()).execute().body();
String body = HttpUtil.createPost(uapUrl + deleteUserUrl + tenantId).body(deleteUserInfo.toJSONString()).execute().body();
cn.hutool.json.JSONObject bodyJson = new cn.hutool.json.JSONObject(body);
if (!(Boolean) bodyJson.get("flag")) {
throw new Exception("删除火石平台用户失败");


Loading…
Cancel
Save