fix: 无uid时不判断粉丝数

This commit is contained in:
shanmite 2021-07-18 10:08:23 +08:00
parent 455c81ee55
commit ce3274c258
5 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,7 @@
* - `MULTIPLE_ACCOUNT_PARM` 多账号参数(JSON格式)
* ## 调试相关
* - `LOTTERY_LOG_LEVEL` 输出日志等级 Error<Warn<Info<Debug 1<2<3<4
* - `NOT_GO_LOTTERY` 关闭抽奖行为 为空字符即关
* - `NOT_GO_LOTTERY` 关闭抽奖行为
* ## 多账号
* 1. ENABLE_MULTIPLE_ACCOUNT 的值改为true
* 2. 将账号信息依次填写于 multiple_account_parm , 参考例子类推
@ -28,7 +28,7 @@ const account_parm = {
ENABLE_MULTIPLE_ACCOUNT: false,
MULTIPLE_ACCOUNT_PARM: "",
LOTTERY_LOG_LEVEL: 3,
NOT_GO_LOTTERY: ''
NOT_GO_LOTTERY: ""
}
/**

View File

@ -822,4 +822,5 @@ const BiliAPI = {
}
};
module.exports = BiliAPI;

View File

@ -153,4 +153,5 @@ const GihubAPI = {
}
}
module.exports = GihubAPI;

View File

@ -95,7 +95,7 @@ class Monitor extends Public {
MyStorage.updateDyid(Lottery.dyid)
continue
}
} else {
} else if (Lottery.uid[0]) {
const followerNum = await BiliAPI.getUserInfo(Lottery.uid[0]);
if (followerNum < 0) {
return 61
@ -350,4 +350,5 @@ class Monitor extends Public {
}
}
module.exports = Monitor;

View File

@ -46,4 +46,5 @@ const MyStorage = {
}
}
module.exports = MyStorage;