diff --git a/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/dto/ShopUserRegisterDTO.java b/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/dto/ShopUserRegisterDTO.java index 9ffb384..47e9469 100644 --- a/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/dto/ShopUserRegisterDTO.java +++ b/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/dto/ShopUserRegisterDTO.java @@ -27,7 +27,7 @@ public class ShopUserRegisterDTO implements Serializable { private String username; @Schema(description = "验证码") - @NotBlank(message = "验证码不能为空") + //@NotBlank(message = "验证码不能为空") private String validCode; public String getUsername() { diff --git a/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/service/impl/ShopUserServiceImpl.java b/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/service/impl/ShopUserServiceImpl.java index b39b71c..0135b6b 100644 --- a/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/service/impl/ShopUserServiceImpl.java +++ b/tmerclub-admin/src/main/java/com/tmerclub/cloud/multishop/service/impl/ShopUserServiceImpl.java @@ -289,10 +289,10 @@ public class ShopUserServiceImpl implements ShopUserService { if (mobileRes.getData() > 0) { throw new LuckException("该手机号已经被注册!"); } - ServerResponseEntity sendNotifyResponse = notifyFeignClient.checkValidCode(shopUserRegisterDTO.getMobile(), shopUserRegisterDTO.getValidCode(), SendTypeEnum.VALID); - if (Objects.equals(sendNotifyResponse.getCode(), ResponseEnum.OK.value()) && Objects.nonNull(sendNotifyResponse.getData()) && !sendNotifyResponse.getData()) { - throw new LuckException("验证码有误或已过期"); - } +// ServerResponseEntity sendNotifyResponse = notifyFeignClient.checkValidCode(shopUserRegisterDTO.getMobile(), shopUserRegisterDTO.getValidCode(), SendTypeEnum.VALID); +// if (Objects.equals(sendNotifyResponse.getCode(), ResponseEnum.OK.value()) && Objects.nonNull(sendNotifyResponse.getData()) && !sendNotifyResponse.getData()) { +// throw new LuckException("验证码有误或已过期"); +// } } @Override