Commit a69cbabe by 罗翻

增加人脸识别

parent 576b34ee
......@@ -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, "系统异常,请稍后重试");
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment