商家注册去掉验证码

This commit is contained in:
liubozhi 2025-03-24 23:53:32 +08:00
parent 504deb9db8
commit 1ac29cb847
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ public class ShopUserRegisterDTO implements Serializable {
private String username; private String username;
@Schema(description = "验证码") @Schema(description = "验证码")
@NotBlank(message = "验证码不能为空") //@NotBlank(message = "验证码不能为空")
private String validCode; private String validCode;
public String getUsername() { public String getUsername() {

View File

@ -289,10 +289,10 @@ public class ShopUserServiceImpl implements ShopUserService {
if (mobileRes.getData() > 0) { if (mobileRes.getData() > 0) {
throw new LuckException("该手机号已经被注册!"); throw new LuckException("该手机号已经被注册!");
} }
ServerResponseEntity<Boolean> sendNotifyResponse = notifyFeignClient.checkValidCode(shopUserRegisterDTO.getMobile(), shopUserRegisterDTO.getValidCode(), SendTypeEnum.VALID); // ServerResponseEntity<Boolean> sendNotifyResponse = notifyFeignClient.checkValidCode(shopUserRegisterDTO.getMobile(), shopUserRegisterDTO.getValidCode(), SendTypeEnum.VALID);
if (Objects.equals(sendNotifyResponse.getCode(), ResponseEnum.OK.value()) && Objects.nonNull(sendNotifyResponse.getData()) && !sendNotifyResponse.getData()) { // if (Objects.equals(sendNotifyResponse.getCode(), ResponseEnum.OK.value()) && Objects.nonNull(sendNotifyResponse.getData()) && !sendNotifyResponse.getData()) {
throw new LuckException("验证码有误或已过期"); // throw new LuckException("验证码有误或已过期");
} // }
} }
@Override @Override