shawenguan 1 rok temu
rodzic
commit
49f55fd342
1 zmienionych plików z 7 dodań i 6 usunięć
  1. 7 6
      Scripts/mangguo/nenMoScript.js

+ 7 - 6
Scripts/mangguo/nenMoScript.js

@@ -321,12 +321,12 @@ async function checkAutoStartMonitorTask(configData) {
     if (taskAccIds.length > 0) {
     if (taskAccIds.length > 0) {
         let retCheck = await preStartTask();
         let retCheck = await preStartTask();
         if (!retCheck) {
         if (!retCheck) {
-            magicJS.notification.appendNotifyInfo(`前置检查失败!`);
+            magicJS.notification.appendNotifyInfo(`任务启动环境检查失败!`);
             return;
             return;
         }
         }
         if (retCheck) {
         if (retCheck) {
             if (retCheck.code == 0) {
             if (retCheck.code == 0) {
-                magicJS.logger.info(`前置检查成功!`);
+                magicJS.logger.info(`任务启动环境检查成功!`);
             } else {
             } else {
                 magicJS.logger.info(retCheck.message);
                 magicJS.logger.info(retCheck.message);
                 magicJS.notification.appendNotifyInfo(retCheck.message);
                 magicJS.notification.appendNotifyInfo(retCheck.message);
@@ -339,13 +339,13 @@ async function checkAutoStartMonitorTask(configData) {
             if (retStart && retStart.code == 0) {
             if (retStart && retStart.code == 0) {
                 startedLst = startedLst.concat(willStartLst);
                 startedLst = startedLst.concat(willStartLst);
                 let resData = retStart.data;
                 let resData = retStart.data;
-                let taskRetText = `任务结果概览:\n`;
+                let taskRetText = `启动监控任务结果概览:\n`;
                 taskRetText += `新增:${resData.addCount}\n`;
                 taskRetText += `新增:${resData.addCount}\n`;
                 taskRetText += `关闭:${resData.closeCount}\n`;
                 taskRetText += `关闭:${resData.closeCount}\n`;
                 taskRetText += `失败:${resData.failCount}\n`;
                 taskRetText += `失败:${resData.failCount}\n`;
                 taskRetText += `现存账号数:${resData.occNodeNum}\n`;
                 taskRetText += `现存账号数:${resData.occNodeNum}\n`;
                 magicJS.logger.info(taskRetText);
                 magicJS.logger.info(taskRetText);
-                msgTipsText = taskRetText + '\n';
+                msgTipsText += taskRetText + '\n';
             }
             }
         } else {
         } else {
             msgTipsText += `当前时间不在运行时间段内,不执行任务!\n`;
             msgTipsText += `当前时间不在运行时间段内,不执行任务!\n`;
@@ -363,6 +363,7 @@ async function checkAutoStartMonitorTask(configData) {
         if (retFastData.data.account) {
         if (retFastData.data.account) {
             fastAccountIds = retFastData.data.account.split(',');
             fastAccountIds = retFastData.data.account.split(',');
         }
         }
+        msgTipsText += `神秘空间剩余可用名额:${left},启动结果如下:\n`;
         for (let i = 0; i < startedLst.length; i++) {
         for (let i = 0; i < startedLst.length; i++) {
             let accountInfo = startedLst[i];
             let accountInfo = startedLst[i];
             if (fastAccountIds.includes(accountInfo.xmAccount)) {
             if (fastAccountIds.includes(accountInfo.xmAccount)) {
@@ -370,13 +371,13 @@ async function checkAutoStartMonitorTask(configData) {
             }
             }
             let retSet = await setCommonFastTrackAccount(accountInfo.xmAccount);
             let retSet = await setCommonFastTrackAccount(accountInfo.xmAccount);
             if (retSet && retSet.code == 0) {
             if (retSet && retSet.code == 0) {
-                msgTipsText += `账号[${accountInfo.xmAccount}}]神秘空间添加成功\n`;
+                msgTipsText += `账号[${accountInfo.xmAccount}}]添加成功\n`;
                 left -= 1;
                 left -= 1;
                 if (left <= 0) {
                 if (left <= 0) {
                     break;
                     break;
                 }
                 }
             } else {
             } else {
-                msgTipsText += `账号[${accountInfo.xmAccount}}]神秘空间添加失败\n`;
+                msgTipsText += `账号[${accountInfo.xmAccount}}]添加失败\n`;
             }
             }
         }
         }
     }
     }