diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/dto/UserRealNameDTO.java b/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/dto/UserRealNameDTO.java index 55051cc7..f046f8ed 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/dto/UserRealNameDTO.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/user/domain/dto/UserRealNameDTO.java @@ -30,7 +30,6 @@ public class UserRealNameDTO { private String realIdCard; @ApiModelProperty("手机号") - @NotBlank(message = "手机号不允许为空") @Pattern(regexp = RegexpUtils.MOBILE_PHONE_REGEXP, message = "手机号格式错误") private String realPhone; diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/user/service/impl/SmUserServiceImpl.java b/smart-switch-service/src/main/java/com/ruoyi/ss/user/service/impl/SmUserServiceImpl.java index 799a8f87..51be92f1 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/user/service/impl/SmUserServiceImpl.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/user/service/impl/SmUserServiceImpl.java @@ -351,8 +351,9 @@ public class SmUserServiceImpl implements ISmUserService // ServiceUtil.assertion(user.getIsReal() != null && user.getIsReal(), "您已进行过实名认证,无需再次认证"); // 调用第三方API三要素验证 - boolean check = RealNameValidUtils.validMobile3Info(dto.getRealIdCard(), dto.getRealPhone(), dto.getRealName()); - ServiceUtil.assertion(!check, "请输入正确的身份信息:姓名、身份证、手机号需要一致"); + // NOTE:无需三要素,只需要姓名、身份证即可 +// boolean check = RealNameValidUtils.validMobile3Info(dto.getRealIdCard(), dto.getRealPhone(), dto.getRealName()); +// ServiceUtil.assertion(!check, "请输入正确的身份信息:姓名、身份证、手机号需要一致"); // 获取活体检测token LivenessResponseTokenData tokenData = LivenessUtils.getToken(LIVENESS_RETURN_URL, null, null); diff --git a/smart-switch-web/src/main/resources/application-dev.yml b/smart-switch-web/src/main/resources/application-dev.yml index dae83776..524f82da 100644 --- a/smart-switch-web/src/main/resources/application-dev.yml +++ b/smart-switch-web/src/main/resources/application-dev.yml @@ -134,4 +134,4 @@ tm: # 活体检测跳转地址 liveness: - returnUrl: http://192.168.2.81:3001/liveness + returnUrl: http://192.168.2.106:3001/liveness