mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
兼容iOS
This commit is contained in:
parent
a6c8f966e4
commit
b4a0c65ee1
@ -169,10 +169,16 @@ if ($.isNode()) {
|
||||
|
||||
if (cookiesArr.length) {
|
||||
console.log(`\n挂机开始,自动8s收一次金币`);
|
||||
setInterval(async () => {
|
||||
//兼容iOS
|
||||
while (true) {
|
||||
await $.wait(8000);
|
||||
const promiseArr = cookiesArr.map(ck => getCoinForInterval(ck));
|
||||
await Promise.all(promiseArr);
|
||||
}, 8000);
|
||||
}
|
||||
// setInterval(async () => {
|
||||
// const promiseArr = cookiesArr.map(ck => getCoinForInterval(ck));
|
||||
// await Promise.all(promiseArr);
|
||||
// }, 8000);
|
||||
}
|
||||
|
||||
while (true) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user