mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 23:42:40 +08:00
fix(bilibili): clear cookie cache on CaptchaError to handle site verification issues
This commit is contained in:
@@ -267,6 +267,7 @@ async function handler(ctx) {
|
||||
body = await getDynamic(cookie);
|
||||
|
||||
if (body?.code === -352) {
|
||||
cache.set('bili-cookie', '');
|
||||
throw new CaptchaError('遇到源站风控校验,请稍后再试');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user