商家注册去掉验证码
This commit is contained in:
parent
504deb9db8
commit
1ac29cb847
@ -27,7 +27,7 @@ public class ShopUserRegisterDTO implements Serializable {
|
||||
private String username;
|
||||
|
||||
@Schema(description = "验证码")
|
||||
@NotBlank(message = "验证码不能为空")
|
||||
//@NotBlank(message = "验证码不能为空")
|
||||
private String validCode;
|
||||
|
||||
public String getUsername() {
|
||||
|
@ -289,10 +289,10 @@ public class ShopUserServiceImpl implements ShopUserService {
|
||||
if (mobileRes.getData() > 0) {
|
||||
throw new LuckException("该手机号已经被注册!");
|
||||
}
|
||||
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()) {
|
||||
throw new LuckException("验证码有误或已过期");
|
||||
}
|
||||
// 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()) {
|
||||
// throw new LuckException("验证码有误或已过期");
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user