兼容iOS

This commit is contained in:
lxk0301
2021-01-15 16:46:06 +08:00
parent 73ed65bf5d
commit 7ff0773760

View File

@@ -169,10 +169,16 @@ if ($.isNode()) {
if (cookiesArr.length) { if (cookiesArr.length) {
console.log(`\n挂机开始自动8s收一次金币`); console.log(`\n挂机开始自动8s收一次金币`);
setInterval(async () => { //兼容iOS
while (true) {
await $.wait(8000);
const promiseArr = cookiesArr.map(ck => getCoinForInterval(ck)); const promiseArr = cookiesArr.map(ck => getCoinForInterval(ck));
await Promise.all(promiseArr); await Promise.all(promiseArr);
}, 8000); }
// setInterval(async () => {
// const promiseArr = cookiesArr.map(ck => getCoinForInterval(ck));
// await Promise.all(promiseArr);
// }, 8000);
} }
while (true) { while (true) {