Commit 49359937 authored by m1991's avatar m1991

登录模块——用户发送短信时-替换验证码功能修复

parent 818c1654
......@@ -55,10 +55,16 @@ public class SmsController {
}
String key= StringUtil.formatKeyWithPrefix(Constants.RedisKey.PROJECT_PRIFIX,Constants.RedisKey.SMS_PRIFIX,phone,codeType+"");
if(null!=redisUtils.get(key)){
redisUtils.delete(key);
}
//生成随机数
String code= MathUtils.random();
//保存至Redis MINUTE_INT
redisUtils.set(key,code,Constants.Duration.HALF_HOUR_INT);
......
......@@ -43,19 +43,33 @@ spring:
max-file-size: 20MB
# 总限制
max-request-size: 40MB
# 192.168.110.165 adm4HYservice$
redis:
open: false # 是否开启redis缓存 true开启 false关闭
database: 0
host: 127.0.0.1
host: 8.131.244.76
port: 6379
password: 123456 # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
password: 1qaz@WSX
timeout: 6000ms
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连
min-idle: 5 # 连接池中的最小空闲连接
# 192.168.110.165 adm4HYservice$
# redis:
# database: 0
# host: 127.0.0.1
# port: 6379
# password: 123456 # 密码(默认为空)
# timeout: 6000ms # 连接超时时长(毫秒)
# jedis:
# pool:
# max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
# max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
# max-idle: 10 # 连接池中的最大空闲连接
# min-idle: 5 # 连接池中的最小空闲连
###上传文件配置 :该配置可根据部署的系统或开发人员自定义路径,每次部署之前需要修改location
uploadFile:
resourceHandler: /upload_flowChart/** #请求 url 中的资源映射也是保存到数据库中的父级路径
......
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