Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
37d00cb1
Commit
37d00cb1
authored
Nov 30, 2020
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整提示语时间
parent
c2fab050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CaptchaFiniteValidateAdvisor.java
...oup/xyqb/aspect/captcha/CaptchaFiniteValidateAdvisor.java
+3
-3
No files found.
src/main/java/cn/quantgroup/xyqb/aspect/captcha/CaptchaFiniteValidateAdvisor.java
View file @
37d00cb1
...
...
@@ -97,7 +97,7 @@ public class CaptchaFiniteValidateAdvisor {
if
(
countErrorByPhone
>
Constants
.
Image_Need_Count
)
{
/**
* 输入密码错误超过一定次数限制登陆
*/
*/
if
(
countErrorByPhone
>=
Constants
.
PASSWORD_ERROR_LOCK_COUNT
)
{
String
lock_key
=
Constants
.
PASSWORD_LOCK_PRE
.
concat
(
phoneNo
);
...
...
@@ -105,12 +105,12 @@ public class CaptchaFiniteValidateAdvisor {
Long
expire
=
redisTemplate
.
opsForValue
().
getOperations
().
getExpire
(
lock_key
);
/**
* 查看锁的剩余时间不存在说明已经解锁
*/
*/
if
(
null
!=
expire
&&
expire
>
0L
)
{
/**
* 获取到的时间是秒 转化为分 大概转一下吧不要太精确
*/
expire
=
expire
>
60L
?
expire
/
60
:
1L
;
expire
=
expire
>
60L
?
expire
/
60
+
1
:
1L
;
return
JsonResult
.
buildErrorStateResult
(
String
.
format
(
ALERT_TEMP
,
expire
),
null
,
TOME_LIMIT_CODE
);
}
}
...
...
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