mirror of
https://github.com/3288588344/toulu.git
synced 2025-12-19 00:04:54 +08:00
Add files via upload
This commit is contained in:
21
第一电动.py
21
第一电动.py
@@ -89,24 +89,3 @@ for account in accounts:
|
|||||||
# 任务类型间隔10秒
|
# 任务类型间隔10秒
|
||||||
time.sleep(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