This commit is contained in:
lxk0301
2021-01-15 19:19:52 +08:00
parent 81165ab20e
commit 52a21b2353

View File

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