Explorar o código

fix faceid timeout bug

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
9ed29170e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/features/OnlineExam/Examing/FaceId.vue

+ 1 - 1
src/features/OnlineExam/Examing/FaceId.vue

@@ -104,7 +104,7 @@ async function updateFaceVerifyMsg(errorMsg: string) {
 // 退出faceid的办法只能二选一。下面是timeout退出。
 let processedByTimeout = false;
 async function faceidLoadedButTimeouted() {
-  if (!processedBySocketMsg) {
+  if (processedBySocketMsg) {
     logger({
       cnl: ["server"],
       act: "faceidLoadedButTimeouted",