Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
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
李伟
cust-api
Commits
f1aafaa8
Commit
f1aafaa8
authored
Jan 15, 2025
by
liwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
efa85249
72af1fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
FaceVerifyServiceImpl.java
...siness/faceVerify/service/impl/FaceVerifyServiceImpl.java
+8
-2
No files found.
src/main/java/org/rcisoft/business/faceVerify/service/impl/FaceVerifyServiceImpl.java
View file @
f1aafaa8
...
...
@@ -98,12 +98,18 @@ public class FaceVerifyServiceImpl extends ServiceImpl<MemInfoRepository, MemInf
request
.
setCallbackToken
(
CyAESUtils
.
encrypt
(
CyUserUtil
.
getAuthenBusinessId
()));
InitFaceVerifyResponse
response
=
initFaceVerifyAutoRoute
(
request
);
log
.
info
(
"
requestId
:"
+
response
.
getBody
().
getCode
());
log
.
info
(
"
code
:"
+
response
.
getBody
().
getCode
());
log
.
info
(
"certifyId:"
+
response
.
getBody
().
getResultObject
().
getCertifyId
());
if
(
"200"
.
equals
(
response
.
getBody
().
getCode
()))
{
map
.
put
(
"requestId"
,
response
.
getBody
().
getRequestId
());
map
.
put
(
"certifyId"
,
response
.
getBody
().
getResultObject
().
getCertifyId
());
map
.
put
(
"certifyUrl"
,
response
.
getBody
().
getResultObject
().
getCertifyUrl
());
}
else
if
(
"401"
.
equals
(
response
.
getBody
().
getCode
()))
{
log
.
error
(
"发起认证请求失败:"
+
response
.
getBody
().
getMessage
());
throw
new
CyServiceException
(
"输入的姓名或者身份证号码有误"
);
}
else
if
(
"418"
.
equals
(
response
.
getBody
().
getCode
()))
{
log
.
error
(
"发起认证请求失败:"
+
response
.
getBody
().
getMessage
());
throw
new
CyServiceException
(
"当天刷脸认证次数过多,请明天再试。"
);
}
else
{
log
.
error
(
"发起认证请求失败:"
+
response
.
getBody
().
getMessage
());
throw
new
CyServiceException
(
"发起认证请求失败"
);
...
...
@@ -256,7 +262,7 @@ public class FaceVerifyServiceImpl extends ServiceImpl<MemInfoRepository, MemInf
}
}
else
{
log
.
error
(
"获取认证详细数据失败:"
+
response
.
getBody
().
getMessage
());
throw
new
CyServiceException
(
"获取认证详细数据失败"
);
throw
new
CyServiceException
(
response
.
getBody
().
getMessage
()
);
}
}
}
...
...
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