Commit 0e1305a5 authored by DESKTOP-BQLVS7A\admin's avatar DESKTOP-BQLVS7A\admin

给验证码增加10分钟有效时间验证

parent fa063d22
......@@ -498,7 +498,8 @@ public class CompanyController extends BaseController {
throw new BadRequest("发送短信失败:" + e.getMessage());
}
// code 保存到缓存中
redisUtils.set(XJConstant.UGP_USER_TEL + adminTel, code);
// redisUtils.set(XJConstant.UGP_USER_TEL + adminTel, code);
redisUtils.set(XJConstant.UGP_USER_TEL+adminTel,code,600);
return ResponseHelper.buildResponse(flag);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment