From 7ff0773760b17b882b4ebc7c52b1e32da4253b05 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Fri, 15 Jan 2021 16:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9iOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_crazy_joy_coin.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jd_crazy_joy_coin.js b/jd_crazy_joy_coin.js index c0696428..c9f99dfe 100644 --- a/jd_crazy_joy_coin.js +++ b/jd_crazy_joy_coin.js @@ -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) {