提交 0b3bdc2b 编写于 作者: rushui.chen's avatar rushui.chen

20200116 验证码校验逻辑判断

上级 a94fcbb7
流水线 #20883 已失败 于阶段
in 0 second
......@@ -87,6 +87,8 @@ public class AutoCodeController extends AccountBaseController {
long senderId = accountIdByMobilePhone == null ? 0L : accountIdByMobilePhone;
//验证码保存到redis,失效时间10分钟
cacheClient.set(this.getAuthCodeKey(mobilePhone, flag), authCode, 600);
//处理验证码原子性的问题
cacheClient.set(RegisterCodeKeyUtils.getRegisterKey(mobilePhone,authCode), 100, 600);
logger.info(this.getAuthCodeKey(mobilePhone, flag));
//发送短信
super.sendMobileMessage(mobilePhone, message, senderId);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册