mirror of
https://github.com/3288588344/toulu.git
synced 2025-12-16 15:00:14 +08:00
Add files via upload
This commit is contained in:
23
第一电动.py
23
第一电动.py
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user