Add files via upload

This commit is contained in:
3288588344
2024-06-26 13:22:58 +08:00
committed by GitHub
parent 1393ff808f
commit f71dd6959c

View File

@@ -88,25 +88,4 @@ for account in accounts:
# 任务类型间隔10秒
time.sleep(10)
}
//===============================================获取远程通知========================================
async function getNotice() {
try {
const urls = [
"https://tfapi.cn/tl.json",
];
let notice = null;
for (const url of urls) {
const options = { url, headers: { "User-Agent": "" }, };
const result = await httpRequest(options);
if (result && "notice" in result) {
notice = result.notice.replace(/\\n/g, "\n");
break;
}
}
if (notice) { $.DoubleLog(notice); }
} catch (e) {
console.log(e);
}