fix(route/bilibili): modify clear cookie logic

This commit is contained in:
pseudoyu
2024-10-31 15:37:45 +07:00
parent a69ff2fa7b
commit 161aeed299
+1 -2
View File
@@ -7,7 +7,7 @@ import logger from '@/utils/logger';
import puppeteer from '@/utils/puppeteer';
import { JSDOM } from 'jsdom';
let disableConfigCookie = false;
const disableConfigCookie = false;
const getCookie = () => {
if (!disableConfigCookie && Object.keys(config.bilibili.cookies).length > 0) {
@@ -49,7 +49,6 @@ const getCookie = () => {
const clearCookie = () => {
cache.set('bili-cookie');
disableConfigCookie = true;
};
const getRenderData = (uid) => {