|
|
|
@@ -22,16 +22,17 @@ public class UserUtil { |
|
|
|
*/ |
|
|
|
public static void creditUsercheck(WxCUser wxCUser, WxCUserBasicInfo 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())) { |
|
|
|
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); |
|
|
|
//} |
|
|
|
|
|
|
|
} |
|
|
|
} |