Skip to content

Commit

Permalink
fix: 源动态禁止转发
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmiteko committed Nov 8, 2024
1 parent b1de122 commit 66fa06f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class Monitor extends Searcher {
case 5002:
case 5003:
case 5004:
case 5005:
status = 0;
break;
case 2004:
Expand Down Expand Up @@ -572,6 +573,7 @@ class Monitor extends Searcher {
* - 转发 该动态不能转发分享 5002
* - 转发 请求数据发生错误,请刷新或稍后重试 5003
* - 转发 操作太频繁了,请稍后重试 5004
* - 转发 源动态禁止转发 5005
*/
async go(option) {
log.debug('正在转发的动态信息', option);
Expand Down
4 changes: 4 additions & 0 deletions lib/net/bili.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ const bili_client = {
* - 该动态不能转发分享 2
* - 请求数据发生错误,请刷新或稍后重试 3
* - 操作太频繁了,请稍后重试 4
* - 源动态禁止转发 5
*/
async autoRelay(uid, dyid, msg = '转发动态', ctrl = '[]') {
const len = msg.length;
Expand Down Expand Up @@ -875,6 +876,9 @@ const bili_client = {
case 1101008:
log.warn('转发动态', '操作太频繁了,请稍后重试');
return 4;
case 4126117:
log.warn('转发动态', '源动态禁止转发');
return 5;
default:
log.error('转发动态', `未知错误\n${responseText}`);
return 1;
Expand Down

0 comments on commit 66fa06f

Please sign in to comment.