|
@@ -18,7 +18,6 @@ const MoConstKey = {
|
|
|
Cookie: `mo_cookie`,
|
|
Cookie: `mo_cookie`,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const gUserAgent = `Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1`;
|
|
const gUserAgent = `Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1`;
|
|
|
const gHost = `mo.10coo.com`;
|
|
const gHost = `mo.10coo.com`;
|
|
|
const gCommonHeaders = {
|
|
const gCommonHeaders = {
|
|
@@ -204,6 +203,8 @@ async function tryExecuteAfkTask() {
|
|
|
} else {
|
|
} else {
|
|
|
needReLogin = true;
|
|
needReLogin = true;
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ needReLogin = false;
|
|
|
}
|
|
}
|
|
|
if (needReLogin) {
|
|
if (needReLogin) {
|
|
|
let username = '10191';
|
|
let username = '10191';
|
|
@@ -215,15 +216,16 @@ async function tryExecuteAfkTask() {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (retConfig.data.hasNotice) {
|
|
|
|
|
- magicJS.notification.appendNotifyInfo(retConfig.data.noticeContent);
|
|
|
|
|
- }
|
|
|
|
|
let retConfig = await getConfig();
|
|
let retConfig = await getConfig();
|
|
|
if (!retConfig || retConfig.code != 0) {
|
|
if (!retConfig || retConfig.code != 0) {
|
|
|
magicJS.logger.info(`获取配置数据失败!`);
|
|
magicJS.logger.info(`获取配置数据失败!`);
|
|
|
magicJS.notification.appendNotifyInfo(`获取配置数据失败!`);
|
|
magicJS.notification.appendNotifyInfo(`获取配置数据失败!`);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (retConfig.data.hasNotice) {
|
|
|
|
|
+ magicJS.notification.appendNotifyInfo(retConfig.data.noticeContent);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let retAccList = await listValidXmAccount();
|
|
let retAccList = await listValidXmAccount();
|
|
|
if (!retAccList || retAccList.code != 0) {
|
|
if (!retAccList || retAccList.code != 0) {
|
|
|
magicJS.logger.info(`获取账号列表数据失败!`);
|
|
magicJS.logger.info(`获取账号列表数据失败!`);
|