Quellcode durchsuchen

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

Michael Wang vor 3 Jahren
Ursprung
Commit
8cb1751865
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/features/OnlineExam/Examing/setups/useFaceLive.ts

+ 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); // 定时做活体检测
     }