From 1ac29cb847fe569efd52029e2e95b6a9a0324087 Mon Sep 17 00:00:00 2001 From: liubozhi Date: Mon, 24 Mar 2025 23:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=AE=B6=E6=B3=A8=E5=86=8C=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tmerclub/cloud/multishop/dto/ShopUserRegisterDTO.java | 2 +- .../cloud/multishop/service/impl/ShopUserServiceImpl.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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