Skip to content

Commit

Permalink
fix: 优化首次使用插件bing模式下验证码请求被阻拦的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Oct 30, 2023
1 parent ea68729 commit 7289ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ export class chatgpt extends plugin {
const { maxConv } = error
if (message && typeof message === 'string' && message.indexOf('CaptchaChallenge') > -1) {
if (bingToken) {
if (maxConv > 20) {
if (maxConv >= 20) {
// maxConv为30说明token有效,可以通过解验证码码服务过码
await e.reply('出现必应验证码,尝试解决中')
try {
Expand Down

0 comments on commit 7289ae6

Please sign in to comment.