张佳燕 9 months ago
parent
commit
7438f34a45
1 changed files with 7 additions and 6 deletions
  1. 7 6
      pages/resultPage/index.js

+ 7 - 6
pages/resultPage/index.js

@@ -205,8 +205,13 @@ Page({
             return
           }
           let originFaceInfo = JSON.parse(res.data.originFaceInfo)
-          console.log(originFaceInfo);
-          if (originFaceInfo.code == '1001' || res.success) {
+          console.log(originFaceInfo.code);
+          // 1003关闭,1004超时
+          if (originFaceInfo.code == '1003' || originFaceInfo.code == '1004') {
+            my.reLaunch({
+              url: '/pages/home/index',
+            })
+          } else {
             // 启用无证登记和刷脸失败跳转手输,跳转输入身份证页面
             if (app.globalData.snDisposition.faceFailHandInput && app.globalData.snDisposition.noIdcardRegister) {
               my.reLaunch({
@@ -218,10 +223,6 @@ Page({
                 url: '/pages/resultPage/index?result=结果页超时&&timer=' + app.globalData.snDisposition.resultPageTimeout,
               })
             }
-          } else {
-            my.reLaunch({
-              url: '/pages/home/index',
-            })
           }
         }