Michael Wang 3 лет назад
Родитель
Сommit
abdf536a8b
2 измененных файлов с 26 добавлено и 12 удалено
  1. 4 4
      src/constants/constants.js
  2. 22 8
      src/features/Login/Login.vue

+ 4 - 4
src/constants/constants.js

@@ -52,10 +52,10 @@ export const HOST_FILE_HASH_MAP = new Map([
     "qmtest.exam-cloud.cn",
     "a31c9eb84fe82031fb01e9e25262f0b407caa705b5245654faeed1490bff67f9",
   ],
-  [
-    "uestccourse.exam-cloud.cn",
-    "1ebdaa1e00fbefca0f6519e252e4d372bcb9c3f96c45760b032ca58683d28306",
-  ],
+  // [
+  //   "uestccourse.exam-cloud.cn",
+  //   "1ebdaa1e00fbefca0f6519e252e4d372bcb9c3f96c45760b032ca58683d28306",
+  // ],
 ]);
 
 export const STRICT_CHECK_HOSTS = [...HOST_FILE_HASH_MAP.keys()];

+ 22 - 8
src/features/Login/Login.vue

@@ -441,20 +441,34 @@ export default {
 
     if (isElectron() && !eval(`process.env.PORTABLE_EXECUTABLE_FILE`)) {
       this.disableLoginBtnBecauseAppVersionChecker = true;
-      this.$Message.error({
-        content: "请与学校申请最新的客户端,进行考试!",
-        duration: 2 * 24 * 60 * 60,
-      });
+      if (UA.getBrowser().version !== "1.9.3") {
+        this.$Message.error({
+          content: "请与学校申请最新的客户端,进行考试!",
+          duration: 2 * 24 * 60 * 60,
+        });
+      } else {
+        this.$Message.error({
+          content: "电脑环境达不到考试要求,请清理与考试无关软件或更换电脑",
+          duration: 2 * 24 * 60 * 60,
+        });
+      }
     }
     registerOnResize();
     initScreenShot();
     if (STRICT_CHECK_HOSTS.includes(window.location.hostname)) {
       if (!checkMainExe()) {
         this.disableLoginBtnBecauseAppVersionChecker = true;
-        this.$Message.error({
-          content: "请与学校申请最新的客户端,进行考试!",
-          duration: 2 * 24 * 60 * 60,
-        });
+        if (UA.getBrowser().version !== "1.9.3") {
+          this.$Message.error({
+            content: "请与学校申请最新的客户端,进行考试!",
+            duration: 2 * 24 * 60 * 60,
+          });
+        } else {
+          this.$Message.error({
+            content: "电脑环境达不到考试要求,请清理与考试无关软件或更换电脑",
+            duration: 2 * 24 * 60 * 60,
+          });
+        }
         this.checkInCaseOldTimeout = setTimeout(() => {
           if (this.newVersionAvailable) {
             this.$Message.error({