fix(bilibili): clear cookie cache on CaptchaError to handle site verification issues

This commit is contained in:
DIYgod 2025-08-27 18:25:47 +08:00
parent feee6d18eb
commit 8139a648e3
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ async function handler(ctx) {
body = await getDynamic(cookie);
if (body?.code === -352) {
cache.set('bili-cookie', '');
throw new CaptchaError('遇到源站风控校验,请稍后再试');
}
}