Compare commits

...

2 Commits

Author SHA1 Message Date
liubozhi
9328472d08 Merge remote-tracking branch 'origin/master' 2025-03-24 23:53:39 +08:00
liubozhi
1ac29cb847 商家注册去掉验证码 2025-03-24 23:53:32 +08:00
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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