This commit is contained in:
shanmite 2021-01-06 21:58:34 +08:00
parent 273df2a6f7
commit 048670fe24

11
main.js
View File

@ -11,13 +11,14 @@ const {
const COOKIE_ARR = [COOKIE, COOKIE_2, COOKIE_3, COOKIE_4, COOKIE_5];
COOKIE_ARR.forEach((cookie, num) => {
if (typeof cookie === 'undefined' && cookie === '') return;
setGlobalVar(cookie, SCKEY).then(async () => {
COOKIE_ARR.forEach(async (cookie, num) => {
console.log(typeof cookie);
if (typeof cookie === 'undefined') return;
await setGlobalVar(cookie, SCKEY).then(async () => {
const { start, isMe, checkCookie } = require("./lib/lottery-in-nodejs");
const isRight = await checkCookie(num + 1);
if (!isRight) return;
isMe();
start();
await isMe();
await start();
})
});