兼容iOS
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user