From baf67ce353abfbac63682a3f2d561f1051a5131a Mon Sep 17 00:00:00 2001 From: beet <63141491+beetcb@users.noreply.github.com> Date: Mon, 21 Dec 2020 09:33:08 +0800 Subject: [PATCH] fix: sleep 1min for preloading all the cookie That means crobtab would be 1 minute ahead of sign time --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index bf3037e..ddab26a 100644 --- a/index.js +++ b/index.js @@ -84,7 +84,7 @@ async function sleep(timeout) { // Pre-loading cookie for sign in await handleCookie() // wait 1 minute for signing - await sleep(0) + await sleep(1) // sign in asynchronizedly with promise all and diff instance of signApp class Promise.all(users.map(e => signIn(e)))