注册用户总是提示“手机验证码错误” #2081

This commit is contained in:
zhangdaiscott 2020-12-09 17:35:28 +08:00
parent 70908e184d
commit 54751428b2
1 changed files with 7 additions and 3 deletions

View File

@ -889,8 +889,12 @@ public class SysUserController {
return result;
}
}
if (!smscode.equals(code)) {
if(null == code){
result.setMessage("手机验证码失效,请重新获取");
result.setSuccess(false);
return result;
}
if (!smscode.equals(code.toString())) {
result.setMessage("手机验证码错误");
result.setSuccess(false);
return result;