Browse Source

//basic nickname

release_toaliyun_real
xhxu 3 years ago
parent
commit
6465111a63
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java

+ 9
- 6
mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java View File

@@ -677,14 +677,18 @@ public class WxUserGrantController extends BaseController {
return new ResultData(Result.ERROR,e.getMessage());
}
if (wxCUserBasicInfo.getName() != null ||
wxCUserBasicInfo.getBirthdate() != null ||
wxCUserBasicInfo.getSex() != null ||
wxCUserBasicInfo.getAddress() != null) {
if (StringUtils.isNotBlank(wxCUserBasicInfo.getNickName())
|| StringUtils.isNotBlank(wxCUserBasicInfo.getAvatarUrl())
|| StringUtils.isNotBlank(wxCUserBasicInfo.getName())
|| wxCUserBasicInfo.getBirthdate() != null
|| wxCUserBasicInfo.getSex() != null
|| StringUtils.isNotBlank(wxCUserBasicInfo.getAddress())) {

WxCUserBasicInfo record = new WxCUserBasicInfo();
record.setId(memberId);
record.setName(wxCUserBasicInfo.getName());
record.setNickName(wxCUserBasicInfo.getNickName());
record.setAvatarUrl(wxCUserBasicInfo.getAvatarUrl());
record.setName(wxCUserBasicInfo.getName());
record.setBirthdate(wxCUserBasicInfo.getBirthdate());
record.setSex(wxCUserBasicInfo.getSex());
record.setWeight(wxCUserBasicInfo.getWeight());
@@ -703,7 +707,6 @@ public class WxUserGrantController extends BaseController {
logger.error("发送同步会员消息异常");
}


wxScoreRulesService.addScore(tenantEntity,EnumScoreType.COMPLETE_INFO, record);
//增加积分
WxCreditHistory wxCreditHistory = new WxCreditHistory();


Loading…
Cancel
Save