From 4aef5192c901951708ec42cf294bd9cb3ad825a1 Mon Sep 17 00:00:00 2001 From: shanmite <1971513084@qq.com> Date: Thu, 24 Dec 2020 17:21:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20SCKEY=E5=80=BC=E6=9C=AA=E8=A7=A3?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/lottery-in-nodejs.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/lottery-in-nodejs.js b/lib/lottery-in-nodejs.js index 83f6ae9..112f695 100644 --- a/lib/lottery-in-nodejs.js +++ b/lib/lottery-in-nodejs.js @@ -31,7 +31,8 @@ function start() { * 是否中奖 */ async function isMe() { - if (GlobalVar.SCKEY === '') return; + const { SCKEY } = GlobalVar + if (SCKEY === '') return; const arr = await BiliAPI.getMyAtInfo(); const text = '可能中奖了!'; let desp = ''; @@ -70,8 +71,8 @@ async function checkCookie(num) { return true; } else { console.log('登录失败'); - console.log(num); - if (GlobalVar.SCKEY === '') return false; + const { SCKEY } = GlobalVar + if (SCKEY === '') return false; Ajax.get({ url: `https://sc.ftqq.com/${SCKEY}.send`, queryStringsObj: {