fix(bilibili): clear cookie cache on CaptchaError to handle site verification issues
This commit is contained in:
parent
feee6d18eb
commit
8139a648e3
|
|
@ -267,6 +267,7 @@ async function handler(ctx) {
|
|||
body = await getDynamic(cookie);
|
||||
|
||||
if (body?.code === -352) {
|
||||
cache.set('bili-cookie', '');
|
||||
throw new CaptchaError('遇到源站风控校验,请稍后再试');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue