mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: cookie undefined
This commit is contained in:
parent
229c47f5ed
commit
6bd245ad70
4
main.js
4
main.js
@ -1,7 +1,5 @@
|
||||
const setGlobalVar = require("./lib/setCookie");
|
||||
|
||||
const isUndefined = value => typeof value === 'undefined';
|
||||
|
||||
const {
|
||||
SCKEY,
|
||||
COOKIE,
|
||||
@ -14,7 +12,7 @@ const {
|
||||
const COOKIE_ARR = [COOKIE, COOKIE_2, COOKIE_3, COOKIE_4, COOKIE_5];
|
||||
|
||||
COOKIE_ARR.forEach((cookie, num) => {
|
||||
if (isUndefined(cookie)) return;
|
||||
if (typeof cookie === 'undefined') return;
|
||||
setGlobalVar(cookie, SCKEY).then(async () => {
|
||||
const { start, isMe, checkCookie } = require("./lib/lottery-in-nodejs");
|
||||
const isRight = await checkCookie(num + 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user