mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: 未知错误带状态码(#175)
This commit is contained in:
parent
1415f18fea
commit
f6aa0d0544
@ -46,7 +46,8 @@ class Monitor extends Searcher {
|
||||
}
|
||||
/** 关注列表初始化 */
|
||||
this.attentionList = await bili.getAttentionList(global_var.get("myUID"));
|
||||
switch (await this.startLottery()) {
|
||||
const status = await this.startLottery();
|
||||
switch (status) {
|
||||
case 0:
|
||||
event_bus.emit('Turn_on_the_Monitor')
|
||||
break;
|
||||
@ -86,7 +87,7 @@ class Monitor extends Searcher {
|
||||
event_bus.emit('Turn_off_the_Monitor', '获取关注数失败')
|
||||
break
|
||||
default:
|
||||
event_bus.emit('Turn_off_the_Monitor', '??? 未知错误')
|
||||
event_bus.emit('Turn_off_the_Monitor', `??? 未知错误: ${status}`)
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -178,6 +179,7 @@ class Monitor extends Searcher {
|
||||
case 1005:
|
||||
case 1006:
|
||||
case 1007:
|
||||
case 1008:
|
||||
case 2002:
|
||||
case 2003:
|
||||
case 4001:
|
||||
@ -522,6 +524,7 @@ class Monitor extends Searcher {
|
||||
* - 评论 已被对方拉入黑名单 1005
|
||||
* - 评论 黑名单用户无法互动 1006
|
||||
* - 评论 UP主已关闭评论区 1007
|
||||
* - 评论 内容包含敏感信息 1008
|
||||
* - 关注 未知错误 2001
|
||||
* - 关注 您已被对方拉入黑名单 2002
|
||||
* - 关注 黑名单用户无法关注 2003
|
||||
|
||||
Loading…
Reference in New Issue
Block a user