Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a69cbabe
authored
May 16, 2018
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加人脸识别
parent
576b34ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
userCenter/src/main/java/com/dayu/usercenter/presenter/facecertification/FaceCertificaitonPresenter.java
userCenter/src/main/java/com/dayu/usercenter/ui/activity/CertificationResultActivity.java
userCenter/src/main/java/com/dayu/usercenter/presenter/facecertification/FaceCertificaitonPresenter.java
View file @
a69cbabe
...
...
@@ -83,7 +83,9 @@ public class FaceCertificaitonPresenter extends FaceCertificaitonContract.Presen
mView
.
startActivity
(
CertificationResultActivity
.
class
,
bundle
);
}
},
responeThrowable
->
{
if
(
"DETECT_ERROR00003"
.
equals
(
responeThrowable
.
subCode
))
{
if
(
"DETECT_ERROR00001"
.
equals
(
responeThrowable
.
subCode
))
{
bundle
.
putString
(
UserConstant
.
DETECT_STATE
,
"请上传清晰有效身份"
);
}
else
if
(
"DETECT_ERROR00003"
.
equals
(
responeThrowable
.
subCode
))
{
bundle
.
putString
(
UserConstant
.
DETECT_STATE
,
"请采集您本人的面孔"
);
}
else
if
(
"DETECT_ERROR00003"
.
equals
(
responeThrowable
.
subCode
))
{
bundle
.
putString
(
UserConstant
.
DETECT_STATE
,
"系统异常,请稍后重试"
);
...
...
userCenter/src/main/java/com/dayu/usercenter/ui/activity/CertificationResultActivity.java
View file @
a69cbabe
...
...
@@ -34,7 +34,7 @@ public class CertificationResultActivity extends DataBindingActivity<ActivityCer
mBind
.
tvNotice
.
setText
(
state
);
mBind
.
tvCommite
.
setText
(
"重新认证"
);
mBind
.
tvCommite
.
setOnClickListener
(
v
->
{
if
(
state
.
contains
(
"活体检测"
))
{
if
(
state
!=
null
&&
state
.
contains
(
"活体检测"
))
{
finish
();
}
else
{
Intent
intent
=
new
Intent
(
mActivity
,
IdentityCertificationActivity
.
class
);
...
...
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