mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: SCKEY值未解构
This commit is contained in:
parent
77ec486f87
commit
4aef5192c9
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user