Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
97a2f0d3
Commit
97a2f0d3
authored
Jun 24, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加站点业务备注
parent
54d013ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
smart-gateway/src/main/java/com/mortals/xhx/base/framework/service/impl/ValidateCodeServiceImpl.java
.../base/framework/service/impl/ValidateCodeServiceImpl.java
+2
-2
No files found.
smart-gateway/src/main/java/com/mortals/xhx/base/framework/service/impl/ValidateCodeServiceImpl.java
View file @
97a2f0d3
...
@@ -7,7 +7,6 @@ import cn.hutool.core.util.IdUtil;
...
@@ -7,7 +7,6 @@ import cn.hutool.core.util.IdUtil;
import
cn.hutool.core.util.ReflectUtil
;
import
cn.hutool.core.util.ReflectUtil
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.utils.redis.RedisUtils
;
import
com.mortals.xhx.base.framework.config.CaptchaProperties
;
import
com.mortals.xhx.base.framework.config.CaptchaProperties
;
import
com.mortals.xhx.base.framework.expection.CaptchaException
;
import
com.mortals.xhx.base.framework.expection.CaptchaException
;
import
com.mortals.xhx.base.framework.expection.CaptchaExpireException
;
import
com.mortals.xhx.base.framework.expection.CaptchaExpireException
;
...
@@ -98,7 +97,8 @@ public class ValidateCodeServiceImpl implements ValidateCodeService {
...
@@ -98,7 +97,8 @@ public class ValidateCodeServiceImpl implements ValidateCodeService {
}
}
String
verifyKey
=
Constant
.
CAPTCHA_CODE_KEY
+
uuid
;
String
verifyKey
=
Constant
.
CAPTCHA_CODE_KEY
+
uuid
;
String
captcha
=
cacheService
.
get
(
verifyKey
);
String
captcha
=
cacheService
.
get
(
verifyKey
);
RedisUtils
.
deleteObject
(
verifyKey
);
cacheService
.
del
(
verifyKey
);
// RedisUtils.deleteObject(verifyKey);
if
(!
code
.
equalsIgnoreCase
(
captcha
))
{
if
(!
code
.
equalsIgnoreCase
(
captcha
))
{
throw
new
CaptchaException
();
throw
new
CaptchaException
();
}
}
...
...
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