|
|
@@ -48,7 +48,7 @@ public class UserUploadManager extends AbstractOrderManager<UserUploadRequest> { |
|
|
|
|
|
|
|
public static final String CUSTOMER_INFO = "customerInfo"; |
|
|
|
public static final String ACCOUNT = "account"; |
|
|
|
|
|
|
|
public static final Pattern userIdNum2 = Pattern.compile(RegexConstant.userIdNum2);// 身份证校验 |
|
|
|
@Autowired |
|
|
|
private RegisterNoCodeManager registerNoCodeManager; |
|
|
|
|
|
|
@@ -111,7 +111,8 @@ public class UserUploadManager extends AbstractOrderManager<UserUploadRequest> { |
|
|
|
} |
|
|
|
//身份证校验 |
|
|
|
if (IdType.SFZ == idType) { |
|
|
|
throwBisExceptionOn(!MyPatterns.checkIdCode(idNum),"身份证证件号码不正确"); |
|
|
|
throwBisExceptionOn(!userIdNum2.matcher(idNum).matches(),"身份证证件号码不正确"); |
|
|
|
// throwBisExceptionOn(!MyPatterns.checkIdCode(idNum),"身份证证件号码不正确"); |
|
|
|
} |
|
|
|
AccountInfo accountInfo = accountInfoRepo.findByMobile(mobile); |
|
|
|
throwBisExceptionOn(accountInfo!=null && hasText(accountInfo.getIdNum())&&!idNum.equals(accountInfo.getIdNum()), "手机号已绑定其他证件号码"); |