Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
49359937
Commit
49359937
authored
Mar 16, 2021
by
m1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录模块——用户发送短信时-替换验证码功能修复
parent
818c1654
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
SmsController.java
.../cn/wisenergy/web/admin/controller/app/SmsController.java
+6
-0
application-dev.yml
wisenergy-web-admin/src/main/resources/application-dev.yml
+19
-5
No files found.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/SmsController.java
View file @
49359937
...
...
@@ -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
);
...
...
wisenergy-web-admin/src/main/resources/application-dev.yml
View file @
49359937
...
...
@@ -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
:
1
23456
# 密码(默认为空)
timeout
:
6000ms
# 连接超时时长(毫秒)
password
:
1
qaz@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 中的资源映射也是保存到数据库中的父级路径
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment