代码提交
This commit is contained in:
parent
6c507928fc
commit
6ff4bd900c
@ -256,12 +256,12 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
|||||||
String storedCode = valueOperations.get(cacheKey);
|
String storedCode = valueOperations.get(cacheKey);
|
||||||
|
|
||||||
if (storedCode == null) {
|
if (storedCode == null) {
|
||||||
log.info("验证码已过期,手机号:{}", verifySmsCodeDTO.getPhoneNum());
|
log.error("验证码已过期,手机号:{}", verifySmsCodeDTO.getPhoneNum());
|
||||||
return AjaxResult.error("验证码已过期,请重新获取!");
|
return AjaxResult.error("验证码已过期,请重新获取!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!storedCode.equals(smsCode)) {
|
if (!storedCode.equals(smsCode)) {
|
||||||
log.info("验证码验证失败,手机号:{},输入的验证码:{},获取的验证码:{}", verifySmsCodeDTO.getPhoneNum(), smsCode, storedCode);
|
log.error("验证码验证失败,手机号:{},输入的验证码:{},获取的验证码:{}", verifySmsCodeDTO.getPhoneNum(), smsCode, storedCode);
|
||||||
return AjaxResult.error("验证码错误,请重新输入!");
|
return AjaxResult.error("验证码错误,请重新输入!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user