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
265da50b1e
commit
382caa04f4
@ -11,9 +11,12 @@ const Script = require('./Script');
|
||||
* @param {string} text
|
||||
* @param {string} desp
|
||||
*/
|
||||
const ServerChan = (text,desp) => {
|
||||
const ServerChan = (text, desp) => {
|
||||
const { SCKEY } = GlobalVar;
|
||||
if (SCKEY === '') return;
|
||||
if (SCKEY === '') {
|
||||
console.log('未填写SCKEY')
|
||||
return;
|
||||
}
|
||||
Ajax.get({
|
||||
url: `https://sc.ftqq.com/${SCKEY}.send`,
|
||||
queryStringsObj: {
|
||||
@ -53,6 +56,8 @@ function start() {
|
||||
* 是否中奖
|
||||
*/
|
||||
async function isMe() {
|
||||
const { SCKEY } = GlobalVar;
|
||||
if (SCKEY === '') return;
|
||||
const arr = await BiliAPI.getMyAtInfo();
|
||||
let desp = '';
|
||||
if (arr.length !== 0) {
|
||||
@ -84,7 +89,7 @@ async function checkCookie(num) {
|
||||
return true;
|
||||
} else {
|
||||
console.log('登录失败');
|
||||
ServerChan('动态抽奖出错',`COOKIE${num} 已失效`);
|
||||
ServerChan('动态抽奖出错', `COOKIE${num} 已失效`);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user