Explorar o código

添加远程桌面软件ToDesk

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
f9d4641498

+ 1 - 1
src/constants/constant-namelist.js

@@ -43,4 +43,4 @@ export const VCAM_LIST = [
 ];
 
 export const REMOTE_APP_NAME =
-  "qq;teamviewer;lookmypc;xt;winaw32;pcaquickconnect;sessioncontroller;sunloginclient;sunloginremote;wemeetapp;wechat";
+  "qq;teamviewer;lookmypc;xt;winaw32;pcaquickconnect;sessioncontroller;sunloginclient;sunloginremote;wemeetapp;wechat;todesk";

+ 3 - 1
src/features/Login/Login.vue

@@ -506,6 +506,7 @@ export default {
       }
     }
 
+    // 这段已经没有意义了,前面已经要求用单一exe的包了
     if (["cup.ecs.qmth.com.cn"].includes(this.schoolDomain)) {
       // console.log(UA.getBrowser(), chromeUA);
       if (
@@ -1015,7 +1016,8 @@ export default {
             .replace(/sunloginremote/gi, "向日葵")
             .replace(/选择免安装运行,截图识别/gi, "向日葵")
             .replace("wemeetapp", "腾讯会议")
-            .replace("wechat", "微信");
+            .replace("wechat", "微信")
+            .replace("todesk", "ToDesk");
 
           names = [...new Set(names.split(",").map((v) => v.trim()))].join(
             ","

+ 2 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -1095,7 +1095,8 @@ export default {
             .replace(/sunloginclient/gi, "向日葵")
             .replace(/sunloginremote/gi, "向日葵")
             .replace("wemeetapp", "腾讯会议")
-            .replace("wechat", "微信");
+            .replace("wechat", "微信")
+            .replace("todesk", "ToDesk");
 
           names = [...new Set(names.split(",").map((v) => v.trim()))].join(
             ","

+ 5 - 5
src/utils/decrypt.html

@@ -75,8 +75,8 @@
           jwkEcKey,
           {
             name: "RSA-OAEP",
-            modulusLength: 4096,
-            publicExponent: new Uint8Array([1, 0, 1]),
+            // modulusLength: 4096,
+            // publicExponent: new Uint8Array([1, 0, 1]),
             hash: "SHA-256",
           },
           true,
@@ -87,9 +87,9 @@
           const res = await window.crypto.subtle.decrypt(
             {
               name: "RSA-OAEP",
-              modulusLength: 4096,
-              publicExponent: new Uint8Array([1, 0, 1]),
-              hash: "SHA-256",
+              // modulusLength: 4096,
+              // publicExponent: new Uint8Array([1, 0, 1]),
+              // hash: "SHA-256",
             },
             privateKey,
             bufView

+ 6 - 4
src/utils/nativeExe.js

@@ -88,12 +88,14 @@ export function nodeCheckRemoteDesktop() {
     .execSync("cmd /c chcp 65001>nul && tasklist /FO CSV")
     .toString();
   // console.debug(appList);
+  if (!appList) return false;
+
   if (
-    appList &&
-    ((appList.match(/sunloginclient/gi) &&
+    (appList.match(/sunloginclient/gi) &&
       appList.match(/sunloginclient/gi).length > 0) ||
-      (appList.match(/选择免安装运行,截图识别/gi) &&
-        appList.match(/选择免安装运行,截图识别/gi).length > 0))
+    (appList.match(/向日葵/gi) && appList.match(/向日葵/gi).length > 0) ||
+    (appList.match(/选择免安装运行,截图识别/gi) &&
+      appList.match(/选择免安装运行,截图识别/gi).length > 0)
   ) {
     return true;
   } else {