Browse Source

fix

release_toaliyun_real
winter 2 years ago
parent
commit
fac52a259c
3 changed files with 16 additions and 4 deletions
  1. +13
    -2
      mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCUserBasicInfoService.java
  3. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java

+ 13
- 2
mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java View File

@@ -699,8 +699,19 @@ public class WxUserGrantController extends BaseController {
}
if (StringUtils.isBlank(wxCUserBasicInfo.getName()) || wxCUserBasicInfo.getBirthdate() == null || wxCUserBasicInfo.getSex() == null) {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"必填信息不能为空");
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"必填信息[姓名,生日,性别]不能为空");
}
boolean isFirst = true;
try {
//WxCUserBasicInfo curWxCUserBasicInfo = getShortCacheMember(memberId,getFinalTenantId());
WxCUserBasicInfo curWxCUserBasicInfo = wxCUserBasicInfoService.getById(memberId,getFinalTenantId());
if (StringUtils.isNotBlank(curWxCUserBasicInfo.getName ()) && null != curWxCUserBasicInfo.getBirthdate() && null != curWxCUserBasicInfo.getSex()) {
isFirst = false;
}
} catch (Exception e) {
return new ResultData(Result.ERROR,e.getMessage());
}
if (StringUtils.isNotBlank(wxCUserBasicInfo.getNickName())
|| StringUtils.isNotBlank(wxCUserBasicInfo.getAvatarUrl())
@@ -724,7 +735,7 @@ public class WxUserGrantController extends BaseController {

removeCacheMember(memberId);

wxCUserBasicInfoService.completeInfoMsg(tenantEntity, record.getId());
wxCUserBasicInfoService.completeInfoMsg(tenantEntity, record.getId(),isFirst);

}
return new ResultData();


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCUserBasicInfoService.java View File

@@ -182,7 +182,7 @@ public interface WxCUserBasicInfoService {

void phoneFirstMsg(TenantEntity tenantEntity, Long id, boolean isFirst);

void completeInfoMsg(TenantEntity tenantEntity, Long id);
void completeInfoMsg(TenantEntity tenantEntity, Long id, boolean IsFirst);

/**
* 通过手机号更新积分


+ 2
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java View File

@@ -1367,12 +1367,13 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc
}

@Override
public void completeInfoMsg(TenantEntity tenantEntity, Long id) {
public void completeInfoMsg(TenantEntity tenantEntity, Long id, boolean isFirst) {
try{
FmInsideBasicUserMsg basicUserPushMsg = new FmInsideBasicUserMsg();
basicUserPushMsg.setMsgType(EnumMsgRecordType.INSIDE_C_COMPLETE_INFO.getCode());
basicUserPushMsg.updateTenantInfo(tenantEntity);
basicUserPushMsg.setBasicUserId(id);
basicUserPushMsg.setIsFirst(isFirst);
logger.info(">>>>>>>>>>>send completeInfoMsg :"+basicUserPushMsg);
mqBaseProducer.sendMessage(basicUserPushMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode());
}catch(Exception e){


Loading…
Cancel
Save