|
|
@@ -42,7 +42,7 @@ public class RegisterNoCodeManager extends AbstractLoginManager implements LogMa |
|
|
|
if (hasText(request.getIdNum()) && request.getIdType() != null) { |
|
|
|
accountInfo = accountInfoRepo.findByIdNumAndIdType(request.getIdNum(), request.getIdType()); |
|
|
|
if (accountInfo != null) |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("该用户已存在实名账号"); |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("证件号已绑定"+accountInfo.getMobile()); |
|
|
|
} |
|
|
|
accountInfo = from(request); |
|
|
|
accountInfoRepo.persist(accountInfo); |