新增微信头像url

This commit is contained in:
yiyan 2019-12-21 19:54:23 +08:00
parent cfd63d829d
commit 46c5e66ca3
3 changed files with 15 additions and 13 deletions

View File

@ -18,6 +18,11 @@ public class UserInfoDto {
*/
private String unionId;
/**
* 微信头像url
*/
private String wechatImgUrl;
/**
* 手机号码
*/
@ -163,4 +168,12 @@ public class UserInfoDto {
public void setUnionId(String unionId) {
this.unionId = unionId;
}
public String getWechatImgUrl() {
return wechatImgUrl;
}
public void setWechatImgUrl(String wechatImgUrl) {
this.wechatImgUrl = wechatImgUrl;
}
}

View File

@ -137,8 +137,6 @@ public class User implements Serializable{
@Column(name = "wechat_unionid")
private String wechatUnionid;
private String wechatImgUrl;
/**
* 修改时间
*/
@ -304,12 +302,4 @@ public class User implements Serializable{
public void setWechatUnionid(String wechatUnionid) {
this.wechatUnionid = wechatUnionid;
}
public String getWechatImgUrl() {
return wechatImgUrl;
}
public void setWechatImgUrl(String wechatImgUrl) {
this.wechatImgUrl = wechatImgUrl;
}
}

View File

@ -378,6 +378,8 @@ public class UserServiceImpl implements UserService {
userDao.executeLoginUpdate(userId,user.getLoginType());
//用户基本信息
UserInfoDto userInfoDto = getUserInfoDto(user, gwellParam);
//微信头像
userInfoDto.setWechatImgUrl(headimgurl);
//用户资产信息
UserAssetDto userAssetDto = getUserAssetInfo(userId);
//返回json信息
@ -389,8 +391,6 @@ public class UserServiceImpl implements UserService {
/**
* 登录返回信息
*/
//微信头像
user.setWechatImgUrl(headimgurl);
//用户信息
json.put("user", getUserInfo(user,gwellParam));
//用户资产
@ -1287,7 +1287,6 @@ public class UserServiceImpl implements UserService {
json.put("gwellUserID", user.getGwellUserID());
json.put("neteaseToken", user.getNeteaseToken());
json.put("userType", user.getUserType());
json.put("wechatImgUrl", user.getWechatImgUrl());
json.put("shopsUserId", user.getShopsUserId());
return json;
}