diff --git a/mallinkBApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java b/mallinkBApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java index f2084fe0f..65a31ed19 100644 --- a/mallinkBApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java +++ b/mallinkBApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java @@ -73,6 +73,8 @@ public class WxCreditHistoryController extends BaseController { WxCUserBasicInfo wxCUserBasicInfo = new WxCUserBasicInfo(); if (wxCUserBasicInfoList != null && wxCUserBasicInfoList.size() > 0) { wxCUserBasicInfo = wxCUserBasicInfoList.get(0); + } else { + return new ResultData(ErrorCode.USER_NOT_AUTH_PHONE); } return new ResultData(wxCUserBasicInfo); } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java index 12b5bef51..765ac0730 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java @@ -605,7 +605,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { public void handSel(WxCouponSend wxCouponSend, Object cUserId) { WxCUser cu = wxCUserMapper.selectByPrimaryKey(cUserId); if (Objects.isNull(cu)) { - throw new MallinkException(ErrorCode.USER_IS_EMPTY); + throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE); } if(StringUtils.isEmpty(cu.getPhone())) { diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java index f02f8fbd7..c121ab847 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java @@ -209,7 +209,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectByPrimaryKey(record.getCUserId()); if (wxCUser == null && wxCUserBasicInfo == null) { //验证此用户是否存在 - throw new MallinkException(ErrorCode.USER_IS_EMPTY); + throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE); } if (StringUtils.isNotEmpty(record.getSpendStr())) { record.setSpend(new BigDecimal(record.getSpendStr()).multiply(new BigDecimal(100)).intValue());