Browse Source

upgrade:悬浮 无核验 后台配置

xwh 2 weeks ago
parent
commit
8f5217a03b

+ 1 - 1
app/src/main/java/com/hanghui/senic/baiduface/BaiduFaceController.java

@@ -100,7 +100,7 @@ public class BaiduFaceController extends BaseController {
                     BaiDuFaceView.PAGE_TYPE_PERSON_CARD_HINT,
                     ConfigManager.getAuthenticationBean().getData().get(0).getOneToOneVoice());
 
-            if(ConfigManager.getAuthenticationBeanListBean().getLocalBaiduFace()){
+            if(ConfigManager.isNoVerificationFloatingPages()){
                 EventBus.getDefault().post(new ShowBaiDuFaceResultEvent(
                         ConfigManager.getAuthenticationBean().getData().get(0).getOneToOneTips()
                 ,ConfigManager.getAuthenticationBean().getData().get(0).getOneToOneVoice(),true));

+ 2 - 2
app/src/main/java/com/hanghui/senic/baiduface/BaiduFacePreviewActivity.java

@@ -604,7 +604,7 @@ public class BaiduFacePreviewActivity extends BaiduFaceMainActivity implements B
                         if (isNeedVerify) {
 
 
-                            if(ConfigManager.getAuthenticationBeanListBean().getLocalBaiduFace()){
+                            if(ConfigManager.isNoVerificationFloatingPages()){
                                 baiduResultView.result(livenessModel,bdFaceCheckConfig.getFeatureCheckMode());
                                 return;
                             }
@@ -1223,7 +1223,7 @@ public class BaiduFacePreviewActivity extends BaiduFaceMainActivity implements B
         isCreatedRunnable = false;
         startTime = 0L;
 
-        if (baiduResultView != null && ConfigManager.getAuthenticationBeanListBean().getLocalBaiduFace()) {
+        if (baiduResultView != null && ConfigManager.isNoVerificationFloatingPages()) {
             baiduResultView.showResultPageUI(false, msg, openVoiceMsg);
             return;
         }

+ 0 - 13
app/src/main/java/com/hanghui/senic/bean/AuthenticationBean.java

@@ -505,19 +505,6 @@ public class AuthenticationBean {
             this.successShowPersonalInfoList = successShowPersonalInfoList;
         }
 
-
-
-        @SerializedName("isLocalBaiduFace")
-        private Boolean isLocalBaiduFace =true;
-
-        public Boolean getLocalBaiduFace() {
-            return isLocalBaiduFace;
-        }
-
-        public void setLocalBaiduFace(Boolean localBaiduFace) {
-            isLocalBaiduFace = localBaiduFace;
-        }
-
         public Integer getSameFaceInterval() {
             return sameFaceInterval;
         }

+ 14 - 0
app/src/main/java/com/hanghui/senic/service/usbserialdemo/utile/ConfigManager.java

@@ -970,6 +970,20 @@ public class ConfigManager {
         return false;
     }
 
+    /**
+     *
+     * @author xwh
+     * Time 悬浮(无核验)
+     * Description: 
+     *
+    **/
+    public static boolean isNoVerificationFloatingPages() {
+        if (authenticationBean.getData().get(0).getResultPageTemplate() == 3) {
+            return true;
+        }
+        return false;
+    }
+
     /**
      * 检查特殊码换取三要素
      *