mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
同步信息
This commit is contained in:
@@ -12,4 +12,6 @@ public class SyncGoUser {
|
||||
private String remark;
|
||||
private String avatar;
|
||||
private Integer status;
|
||||
private String openId;
|
||||
private String unionId;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import java.util.stream.Collectors;
|
||||
import javax.validation.Validator;
|
||||
|
||||
import cn.hutool.system.UserInfo;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.ruoyi.system.api.domain.KSysUserAccount;
|
||||
import com.ruoyi.system.domain.SyncGoUser;
|
||||
@@ -411,7 +412,11 @@ public class SysUserServiceImpl implements ISysUserService
|
||||
syncGoUser.setLastIp(user.getLoginIp());
|
||||
syncGoUser.setRemark(user.getRemark());
|
||||
syncGoUser.setAvatar(user.getAvatar());
|
||||
syncGoUser.setStatus(Objects.equals(user.getStatus(), "正常") ?0:1);
|
||||
syncGoUser.setStatus(Objects.equals(user.getStatus(), "1") ?1:0);
|
||||
if (user.getSysUserAccount() != null) {
|
||||
syncGoUser.setUnionId(user.getSysUserAccount().getWxUnionId());
|
||||
syncGoUser.setOpenId(user.getSysUserAccount().getRoutineOpenid());
|
||||
}
|
||||
ResponseEntity<String> response = restTemplate.postForEntity(url, syncGoUser, String.class);
|
||||
// 检查响应状态码
|
||||
if (response.getStatusCode().is2xxSuccessful()) {
|
||||
|
||||
Reference in New Issue
Block a user