Browse Source

[优化]积分处理逻辑

release_toaliyun_real
Burce 6 years ago
parent
commit
8a12f5a75c
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      mallinkService/src/main/java/com/iformall/utils/UserUtil.java

+ 5
- 4
mallinkService/src/main/java/com/iformall/utils/UserUtil.java View File

@@ -22,16 +22,17 @@ public class UserUtil {
*/ */
public static void creditUsercheck(WxCUser wxCUser, WxCUserBasicInfo wxCUserBasicInfo) { public static void creditUsercheck(WxCUser wxCUser, WxCUserBasicInfo wxCUserBasicInfo) {
if (Objects.isNull(wxCUser) && Objects.isNull(wxCUserBasicInfo)) { if (Objects.isNull(wxCUser) && Objects.isNull(wxCUserBasicInfo)) {
throw new MallinkException(ErrorCode.USER_NOT_MEMBER);
throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
} }


if (Objects.isNull(wxCUserBasicInfo)|| StringUtils.isBlank(wxCUserBasicInfo.getPhone())) { if (Objects.isNull(wxCUserBasicInfo)|| StringUtils.isBlank(wxCUserBasicInfo.getPhone())) {
throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE); throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
} }


if (Objects.isNull(wxCUser)|| StringUtils.isBlank(wxCUser.getPhone())) {
throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
}
// 根据当前业务,wxCUserBasicInfo存在手机号,wxCUser肯定存在,除非人为删除手机号
//if (Objects.isNull(wxCUser)|| StringUtils.isBlank(wxCUser.getPhone())) {
// throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
//}


} }
} }

Loading…
Cancel
Save