Commit 7066ab32 authored by 施翔轲's avatar 施翔轲

更新删除组织短信失效10min

parent dff4be02
......@@ -112,7 +112,7 @@ public class CaptchaController {
String phonenumber = sysUser.getPhonenumber();
String key = GlobalConstants.CAPTCHA_CODE_KEY + phonenumber;
String code = RandomUtil.randomNumbers(6);
RedisUtils.setCacheObject(key, code, Duration.ofMinutes(Constants.CAPTCHA_EXPIRATION));
RedisUtils.setCacheObject(key, code, Duration.ofMinutes(10));
// 验证码模板id 自行处理 (查数据库或写死均可)
LinkedHashMap<String, String> map = new LinkedHashMap<>(1);
map.put("code", code);
......
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