|
|
@ -123,8 +123,8 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
//前台和后台已有实体字段不对于 需要挨个赋值
|
|
|
|
userWechatDTO.setUserId(wxUserInfoFormDTO.getUserId()); |
|
|
|
userWechatDTO.setNickname(wxUserInfoFormDTO.getNickName() == null ? null : wxUserInfoFormDTO.getNickName()); |
|
|
|
userWechatDTO.setSex(Integer.parseInt(wxUserInfoFormDTO.getGender())); |
|
|
|
userWechatDTO.setHeadImgUrl(wxUserInfoFormDTO.getAvatarUrl()); |
|
|
|
userWechatDTO.setSex(Integer.parseInt(wxUserInfoFormDTO.getGender() == null ? "0" : wxUserInfoFormDTO.getGender())); |
|
|
|
userWechatDTO.setHeadImgUrl(wxUserInfoFormDTO.getAvatarUrl() == null ? null : wxUserInfoFormDTO.getAvatarUrl()); |
|
|
|
userWechatDTO.setCountry(wxUserInfoFormDTO.getCountry() == null ? null : wxUserInfoFormDTO.getCountry()); |
|
|
|
userWechatDTO.setProvince(wxUserInfoFormDTO.getProvince() == null ? null : wxUserInfoFormDTO.getProvince()); |
|
|
|
userWechatDTO.setCity(wxUserInfoFormDTO.getCity() == null ? null : wxUserInfoFormDTO.getCity()); |
|
|
|