瀏覽代碼

绿色版向日葵进程名称

Michael Wang 3 年之前
父節點
當前提交
9bb8376816
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 1 0
      src/features/Login/Login.vue
  2. 6 3
      src/utils/nativeExe.js

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

@@ -993,6 +993,7 @@ export default {
             .replace("sessioncontroller", "Symantec PCAnywhere")
             .replace("sessioncontroller", "Symantec PCAnywhere")
             .replace(/sunloginclient/gi, "向日葵")
             .replace(/sunloginclient/gi, "向日葵")
             .replace(/sunloginremote/gi, "向日葵")
             .replace(/sunloginremote/gi, "向日葵")
+            .replace(/选择免安装运行,截图识别/gi, "向日葵")
             .replace("wemeetapp", "腾讯会议")
             .replace("wemeetapp", "腾讯会议")
             .replace("wechat", "微信");
             .replace("wechat", "微信");
 
 

+ 6 - 3
src/utils/nativeExe.js

@@ -85,12 +85,15 @@ export function nodeCheckRemoteDesktop() {
 
 
   const appList = window
   const appList = window
     .nodeRequire("child_process")
     .nodeRequire("child_process")
-    .execSync("tasklist")
+    .execSync("cmd /c chcp 65001>nul && tasklist /FO CSV")
     .toString();
     .toString();
+  // console.debug(appList);
   if (
   if (
     appList &&
     appList &&
-    appList.match(/sunloginclient/gi) &&
-    appList.match(/sunloginclient/gi).length > 0
+    ((appList.match(/sunloginclient/gi) &&
+      appList.match(/sunloginclient/gi).length > 0) ||
+      (appList.match(/选择免安装运行,截图识别/gi) &&
+        appList.match(/选择免安装运行,截图识别/gi).length > 0))
   ) {
   ) {
     return true;
     return true;
   } else {
   } else {