Commit 0c79878f by 李小龙

fix: 平台移动端 用户名

parent dd4fc70a
......@@ -21,7 +21,7 @@ public class CommonUserUtil {
WechatUserInfo wechatUserInfo = ThreadLocalUserUtil.getWechatUser();
if (wechatUserInfo != null) {
return new CommonUserVO(wechatUserInfo.getId(), wechatUserInfo.getName());
return new CommonUserVO(wechatUserInfo.getId(), wechatUserInfo.getUsername());
}
SaasUserLoginVO saasUser = ThreadLocalUserUtil.getSaasUser();
......@@ -54,7 +54,7 @@ public class CommonUserUtil {
if (StringUtils.isNotBlank(wechatToken)) {
WechatUserInfo wechatUserInfo = TokenUtil.getWechatUserDetail(wechatToken);
if (wechatUserInfo != null) {
return new CommonUserVO(wechatUserInfo.getId(), wechatUserInfo.getName());
return new CommonUserVO(wechatUserInfo.getId(), wechatUserInfo.getUsername());
}
}
......
......@@ -25,7 +25,7 @@ public class WechatUserInfo implements Serializable {
private String openid;
@ApiModelProperty(value = "姓名")
private String name;
private String username;
@ApiModelProperty(value = "手机号码")
private String phone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment