修改小程序登录时短信验证日志追踪
This commit is contained in:
parent
6ff4bd900c
commit
ee6cf0ea77
@ -232,7 +232,7 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
||||
// 更新验证码和冷却键
|
||||
valueOperations.set(cacheKey, code, 5, TimeUnit.MINUTES);
|
||||
valueOperations.set(coolDownKey, Constants.SMS_COOL_DOWN_VALUE, 60, TimeUnit.SECONDS);
|
||||
log.info("手机号为{}的验证码已经生成", phoneNum);
|
||||
log.info("手机号为{}的验证码已经生成,验证码:{}", phoneNum, code);
|
||||
return AjaxResult.success("短信发送成功");
|
||||
} catch (ClientException e) {
|
||||
log.error("短信发送失败,手机号:{},错误原因:{}", phoneNum, e.getMessage(), e);
|
||||
@ -265,7 +265,7 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
||||
return AjaxResult.error("验证码错误,请重新输入!");
|
||||
}
|
||||
|
||||
log.info("验证码验证成功,手机号:{}", verifySmsCodeDTO.getPhoneNum());
|
||||
log.info("验证码验证成功,手机号:{},输入的验证码:{},获取的验证码:{}", verifySmsCodeDTO.getPhoneNum(), smsCode, storedCode);
|
||||
List<ResidentInfo> residentInfos = residentInfoMapper.getResidentInfoByPhoneAndName(verifySmsCodeDTO.getPhoneNum(), verifySmsCodeDTO.getPatientName());
|
||||
|
||||
if (residentInfos == null || residentInfos.isEmpty()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user