Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
a32a189b
Commit
a32a189b
authored
Nov 04, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实名认证
parent
d51f5f91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
XCFQPictureParsingImpl.java
...l/service/PictureParsing/impl/XCFQPictureParsingImpl.java
+5
-6
No files found.
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/PictureParsing/impl/XCFQPictureParsingImpl.java
View file @
a32a189b
...
...
@@ -38,10 +38,6 @@ public class XCFQPictureParsingImpl implements UserPictureParsing {
private
String
method
=
"POST"
;
private
String
imageRet
=
"code"
;
private
String
resultCode
=
"1"
;
private
String
dataNam
=
"result"
;
...
...
@@ -81,14 +77,17 @@ public class XCFQPictureParsingImpl implements UserPictureParsing {
private
Map
<
String
,
String
>
judgeAccordingToAnalyticalData
(
String
imageUrl
,
String
type
)
{
String
json
=
imageParse
(
imageUrl
);
log
.
info
(
"json:"
+
json
);
if
(
StringUtils
.
isBlank
(
json
))
{
return
null
;
}
Map
reuslt
=
(
Map
)
JSONObject
.
parse
(
json
);
//判断是否调用图片解析的接口是否异常,若果两个次认证都没结果
if
(
"front"
.
equals
(
type
))
{
if
(
MapUtil
.
isEmpty
(
reuslt
)
||
!(
reuslt
.
get
(
"code"
).
equals
(
1
))
||
!(
reuslt
.
get
(
"code"
).
equals
(
"1"
))
)
{
return
null
;
}
...
...
@@ -96,7 +95,7 @@ public class XCFQPictureParsingImpl implements UserPictureParsing {
if
(
"back"
.
equals
(
type
))
{
if
(
MapUtil
.
isEmpty
(
reuslt
)
||
!(
reuslt
.
get
(
"code"
).
equals
(
2
))
||
!(
reuslt
.
get
(
"code"
).
equals
(
"1"
))
)
{
return
null
;
}
...
...
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