Эх сурвалжийг харах

定时抓拍和活体检测在整数分钟的时间点上错开

Michael Wang 3 жил өмнө
parent
commit
8cb1751865

+ 2 - 2
src/features/OnlineExam/Examing/setups/useFaceLive.ts

@@ -47,13 +47,13 @@ export function useFaceLive(doSnap: () => void) {
         doSnap();
         // this.toggleSnapNow();
         $message.info("30秒后开始指定动作检测");
-      }, faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
+      }, faceVerifyMinute * 60 * 1000 - 30 * 1000 + 5 * 1000); // 活体检测提醒。加5秒,和整分抓拍错开。
 
       addTimeout(() => {
         if (identificationOfLivingBodyScheme === "S1") {
           showFaceId = true;
         }
-      }, faceVerifyMinute * 60 * 1000); // 定时做活体检测
+      }, faceVerifyMinute * 60 * 1000 + 5 * 1000); // 定时做活体检测。加5秒,和整分抓拍错开。
       // }, 1 * 1000); // 定时做活体检测
     }