fix: 验证码识别失败无限重试
Some checks failed
Build and push Docker images / docker (push) Has been cancelled
Mirror and run GitLab CI / build (push) Has been cancelled
Package Node.js project into an executable / node${{ matrix.nodev }}-${{ matrix.platform }}-x64 (18, linux) (push) Has been cancelled
Package Node.js project into an executable / node${{ matrix.nodev }}-${{ matrix.platform }}-x64 (18, macos) (push) Has been cancelled
Package Node.js project into an executable / node${{ matrix.nodev }}-${{ matrix.platform }}-x64 (18, win) (push) Has been cancelled
Package Node.js project into an executable / node18-${{ matrix.platform }}-arm64 (alpine) (push) Has been cancelled
Package Node.js project into an executable / node18-${{ matrix.platform }}-arm64 (linux) (push) Has been cancelled
Package Node.js project into an executable / node18-${{ matrix.platform }}-arm64 (linuxstatic) (push) Has been cancelled

This commit is contained in:
shanmite 2024-09-19 11:10:42 +08:00
parent d3475a5032
commit b1de122c75
2 changed files with 4 additions and 1 deletions

View File

@ -1159,6 +1159,9 @@ const bili_client = {
} else { } else {
need_captcha = false; need_captcha = false;
} }
} else {
log.error('验证码识别', '失败');
break;
} }
} else { } else {
url = await bili_client.sendChat( url = await bili_client.sendChat(

View File

@ -296,7 +296,7 @@ const utils = {
resolve(res.body); resolve(res.body);
}, },
failure: () => { failure: () => {
resolve(); resolve(null);
} }
}); });
}); });