Compare commits
2 Commits
cc9cc23abd
...
9328472d08
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9328472d08 | ||
![]() |
1ac29cb847 |
@ -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() {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user