mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: 仅但要输验证码时尝试再次评论
This commit is contained in:
parent
ba9dae8d4d
commit
f21f026415
@ -651,9 +651,15 @@ const BiliAPI = {
|
||||
} else if (res.code === -404) {
|
||||
show ? Base.tooltip.log('[自动评论]原动态已删除') : void 0;
|
||||
resolve(1);
|
||||
} else {
|
||||
show ? Base.tooltip.log('[自动评论]评论失败') : void 0;
|
||||
} else if (res.code === 12002) {
|
||||
show ? Base.tooltip.log('[自动评论]评论区已关闭') : void 0;
|
||||
resolve(1);
|
||||
} else if (res.code === 12015) {
|
||||
show ? Base.tooltip.log('[自动评论]需要输入验证码') : void 0;
|
||||
resolve(0);
|
||||
} else {
|
||||
show ? Base.tooltip.log(`[自动评论]评论失败\n${responseText}`) : void 0;
|
||||
resolve(1);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -213,8 +213,8 @@ class Monitor extends Public {
|
||||
})
|
||||
}
|
||||
if (this.isAttentionErr && uid.length !== 0) return 0;
|
||||
if (await BiliAPI.autoRelay(GlobalVar.myUID, dyid, relay_chat, ctrl) === 0) return 0;
|
||||
if (await BiliAPI.autolike(dyid) === 0) return 0;
|
||||
if (await BiliAPI.autoRelay(GlobalVar.myUID, dyid, relay_chat, ctrl) === 0) return 0;
|
||||
await Base.delay(Number(config.wait) + Math.floor(Math.random() * 60000 - 30000));
|
||||
return 1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user