mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
parent
8ac7466878
commit
50c22a4ecf
@ -65,11 +65,12 @@ class Monitor extends Searcher {
|
|||||||
event_bus.emit('Turn_off_the_Monitor', '分区移动出错')
|
event_bus.emit('Turn_off_the_Monitor', '分区移动出错')
|
||||||
break;
|
break;
|
||||||
case 2004:
|
case 2004:
|
||||||
log.warn('账号异常', `UID(${global_var.get('myUID')})异常号只会对部分UP出现关注异常`)
|
case 4005:
|
||||||
|
log.warn(`账号异常${status}`, `UID(${global_var.get('myUID')})异常号只会对部分UP出现异常`)
|
||||||
if (!config.is_exception) {
|
if (!config.is_exception) {
|
||||||
await sendNotify(
|
await sendNotify(
|
||||||
'[动态抽奖]账号异常通知',
|
`[动态抽奖]账号异常${status}通知`,
|
||||||
`UID: ${global_var.get('myUID')}\n异常号只会对部分UP出现关注异常\n可在设置中令is_exception为true关闭此推送\n${log._cache.filter(it => /Error|\s抽奖信息\]/.test(it)).join('\n')}`
|
`UID: ${global_var.get('myUID')}\n异常号只会对部分UP出现异常\n可在设置中令is_exception为true关闭此推送\n${log._cache.filter(it => /Error|\s抽奖信息\]/.test(it)).join('\n')}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
config.is_exception = true;
|
config.is_exception = true;
|
||||||
@ -206,6 +207,9 @@ class Monitor extends Searcher {
|
|||||||
case 2004:
|
case 2004:
|
||||||
is_exception = 2004
|
is_exception = 2004
|
||||||
break;
|
break;
|
||||||
|
case 4005:
|
||||||
|
is_exception = 4005
|
||||||
|
break;
|
||||||
case 2005:
|
case 2005:
|
||||||
is_outof_maxfollow = 2005
|
is_outof_maxfollow = 2005
|
||||||
break;
|
break;
|
||||||
@ -573,6 +577,7 @@ class Monitor extends Searcher {
|
|||||||
* - 点赞 点赞异常 4002
|
* - 点赞 点赞异常 4002
|
||||||
* - 点赞 点赞频繁 4003
|
* - 点赞 点赞频繁 4003
|
||||||
* - 点赞 已赞过 4004
|
* - 点赞 已赞过 4004
|
||||||
|
* - 点赞 账号异常,点赞失败 4005
|
||||||
* - 转发 未知错误 5001
|
* - 转发 未知错误 5001
|
||||||
* - 转发 该动态不能转发分享 5002
|
* - 转发 该动态不能转发分享 5002
|
||||||
* - 转发 请求数据发生错误,请刷新或稍后重试 5003
|
* - 转发 请求数据发生错误,请刷新或稍后重试 5003
|
||||||
@ -661,15 +666,17 @@ class Monitor extends Searcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 转发 */
|
/* 转发 */
|
||||||
status = await retryfn(
|
if (dyid) {
|
||||||
5,
|
status = await retryfn(
|
||||||
[1, 3, 4],
|
5,
|
||||||
() => bili.autoRelay(global_var.get("myUID"), dyid, relay_chat, ctrl)
|
[1, 3, 4],
|
||||||
)
|
() => bili.autoRelay(global_var.get("myUID"), dyid, relay_chat, ctrl)
|
||||||
|
)
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
log.warn("抽奖信息", `dyid: ${dyid}`)
|
log.warn("抽奖信息", `dyid: ${dyid}`)
|
||||||
return 5000 + status
|
return 5000 + status
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return status
|
return status
|
||||||
|
|||||||
@ -348,7 +348,7 @@ const config = {
|
|||||||
is_not_create_partition: false,
|
is_not_create_partition: false,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否关注异常
|
* 是否异常
|
||||||
*/
|
*/
|
||||||
is_exception: false,
|
is_exception: false,
|
||||||
|
|
||||||
|
|||||||
@ -737,6 +737,7 @@ const bili_client = {
|
|||||||
* - 点赞异常 2
|
* - 点赞异常 2
|
||||||
* - 点赞频繁 3
|
* - 点赞频繁 3
|
||||||
* - 已赞过 4
|
* - 已赞过 4
|
||||||
|
* - 账号异常,点赞失败 5
|
||||||
*/
|
*/
|
||||||
async autolike(dyid) {
|
async autolike(dyid) {
|
||||||
const
|
const
|
||||||
@ -763,6 +764,9 @@ const bili_client = {
|
|||||||
case 65006:
|
case 65006:
|
||||||
log.warn('自动点赞', '已赞过');
|
log.warn('自动点赞', '已赞过');
|
||||||
return 4;
|
return 4;
|
||||||
|
case 4128014:
|
||||||
|
log.warn('自动点赞', '账号异常,点赞失败');
|
||||||
|
return 5;
|
||||||
default:
|
default:
|
||||||
log.error('自动点赞', `未知错误\n${responseText}`);
|
log.error('自动点赞', `未知错误\n${responseText}`);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
@ -357,7 +357,7 @@ module.exports = Object.freeze({
|
|||||||
is_not_create_partition: false,
|
is_not_create_partition: false,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否关注异常
|
* 是否异常
|
||||||
*/
|
*/
|
||||||
is_exception: false,
|
is_exception: false,
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user