记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
76777d3d
Commit
76777d3d
authored
Aug 29, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:藏品转赠安全密码校验调整;
parent
776c4c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+4
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
76777d3d
...
@@ -2771,6 +2771,9 @@ public class GoblinRedisUtils {
...
@@ -2771,6 +2771,9 @@ public class GoblinRedisUtils {
redisUtil
.
expireSet
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWD
,
ChronoUnit
.
SECONDS
.
between
(
currentDateTime
,
tomorrowStartDateTime
));
redisUtil
.
expireSet
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWD
,
ChronoUnit
.
SECONDS
.
between
(
currentDateTime
,
tomorrowStartDateTime
));
case
2
:
case
2
:
passwdtlTimelimit
=
(
Integer
)
redisUtil
.
get
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL_TIMELIMIT
);
passwdtlTimelimit
=
(
Integer
)
redisUtil
.
get
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL_TIMELIMIT
);
if
(
null
==
passwdtlTimelimit
)
{
redisUtil
.
set
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL_TIMELIMIT
,
passwdtlTimelimit
=
30
);
}
errorMessage
=
ErrorMapping
.
get
(
"140116"
);
errorMessage
=
ErrorMapping
.
get
(
"140116"
);
return
ResponseDto
.
failure
(
errorMessage
.
getCode
(),
String
.
format
(
errorMessage
.
getMessage
(),
3
-
validFailedNum
,
passwdtlTimelimit
));
return
ResponseDto
.
failure
(
errorMessage
.
getCode
(),
String
.
format
(
errorMessage
.
getMessage
(),
3
-
validFailedNum
,
passwdtlTimelimit
));
case
3
:
case
3
:
...
@@ -2778,7 +2781,7 @@ public class GoblinRedisUtils {
...
@@ -2778,7 +2781,7 @@ public class GoblinRedisUtils {
if
(
null
==
passwdtlTimelimit
)
{
if
(
null
==
passwdtlTimelimit
)
{
redisUtil
.
set
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL_TIMELIMIT
,
passwdtlTimelimit
=
30
);
redisUtil
.
set
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL_TIMELIMIT
,
passwdtlTimelimit
=
30
);
}
}
redisUtil
.
set
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL
.
concat
(
uid
),
1
,
passwdtlTimelimit
*
60
);
redisUtil
.
set
(
GoblinRedisConst
.
USER_SAFE_LK_PASSWDTL
.
concat
(
uid
),
1
,
passwdtlTimelimit
*
60
);
// 30分钟后可继续尝试第4、5次
errorMessage
=
ErrorMapping
.
get
(
"140113"
);
errorMessage
=
ErrorMapping
.
get
(
"140113"
);
return
ResponseDto
.
failure
(
errorMessage
.
getCode
(),
String
.
format
(
errorMessage
.
getMessage
(),
passwdtlTimelimit
));
return
ResponseDto
.
failure
(
errorMessage
.
getCode
(),
String
.
format
(
errorMessage
.
getMessage
(),
passwdtlTimelimit
));
case
4
:
case
4
:
...
...
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