fix(route/bilibili): modify clear cookie logic
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user