nili 8 months ago
parent
commit
7c53df2d6f
  1. 2
      game-service/src/main/java/awesome/group/game/service/RegisterService.java

2
game-service/src/main/java/awesome/group/game/service/RegisterService.java

@ -44,7 +44,7 @@ public class RegisterService {
Assert.isTrue(StringUtils.hasText(bo.code), "验证码不能为空");
Assert.isTrue(StringUtils.hasText(bo.pwd), "密码不能为空");
if (smsService.verifyAndUseCaptcha(bo.mobile, "register", bo.code)) {
if (!smsService.verifyAndUseCaptcha(bo.mobile, "register", bo.code)) {
throw new PaganiException(PaganiExceptionCode.GENERAL_ERROR, "验证码错误");
}

Loading…
Cancel
Save