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
bf606e38
Commit
bf606e38
authored
Aug 10, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录极验验证返回空不记录日志
parent
4837cb43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
NewCaptchaController.java
...yqb/controller/external/captcha/NewCaptchaController.java
+4
-2
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/captcha/NewCaptchaController.java
View file @
bf606e38
...
...
@@ -67,7 +67,7 @@ public class NewCaptchaController {
imgMap
=
geetestCaptchaService
.
fetchGeetestCaptcha
(
keyMd5
,
remoteIp
,
ClientType
.
valueByName
(
clientType
));
data
.
put
(
Constants
.
VERIFY_PARAM
,
Constants
.
VERIFY_TYPE_GT
);
// 存储极验日志,phone_no, datasource, setting, challenge, captchaid
if
(
StringUtils
.
isNotBlank
(
settingType
))
{
if
(
StringUtils
.
isNotBlank
(
settingType
)
&&
null
!=
imgMap
)
{
geetestLogId
=
geetestLogService
.
saveGeetestLog
(
phoneNo
,
clientType
,
settingType
,
imgMap
);
}
...
...
@@ -109,7 +109,9 @@ public class NewCaptchaController {
imgMap
=
geetestCaptchaService
.
fetchGeetestCaptchaPasswd
(
keyMd5
,
remoteIp
,
ClientType
.
valueByName
(
clientType
));
data
.
put
(
Constants
.
VERIFY_PARAM
,
Constants
.
VERIFY_TYPE_GT
);
// 存储极验日志,phone_no, datasource, setting, challenge, captchaid
if
(
StringUtils
.
isNotBlank
(
settingType
)
&&
null
!=
imgMap
)
{
geetestLogId
=
geetestLogService
.
saveGeetestLog
(
phoneNo
,
clientType
,
settingType
,
imgMap
);
}
// 返回结果
if
(
Objects
.
isNull
(
imgMap
)
||
imgMap
.
isEmpty
())
{
...
...
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