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