From e02630d3d845d41830cdcb7f91d90a7f121b36b7 Mon Sep 17 00:00:00 2001 From: snowtafir Date: Sat, 26 Oct 2024 11:40:54 +0800 Subject: [PATCH] optimize: add user-agent config --- CHANGELOG.md | 1 + apps/bilibili.ts | 8 +- defaultConfig/bilibili/config.yaml | 8 +- models/bilibili/bilibili.api.ts | 99 ------------- models/bilibili/bilibili.main.api.ts | 136 ++++++++++++++++++ ...li.buid.fp.ts => bilibili.main.buid.fp.ts} | 0 ....data.ts => bilibili.main.get.web.data.ts} | 10 +- ...bili.models.ts => bilibili.main.models.ts} | 7 +- ...libili.query.ts => bilibili.main.query.ts} | 4 +- ...bilibili.task.ts => bilibili.main.task.ts} | 6 +- ...bili.dm.img.ts => bilibili.risk.dm.img.ts} | 0 ...bili.ticket.ts => bilibili.risk.ticket.ts} | 2 +- ...li.w_webid.ts => bilibili.risk.w_webid.ts} | 4 +- .../{bilibili.wbi.ts => bilibili.risk.wbi.ts} | 0 package.json | 2 +- 15 files changed, 165 insertions(+), 122 deletions(-) delete mode 100644 models/bilibili/bilibili.api.ts create mode 100644 models/bilibili/bilibili.main.api.ts rename models/bilibili/{bilibili.buid.fp.ts => bilibili.main.buid.fp.ts} (100%) rename models/bilibili/{bilibili.get.web.data.ts => bilibili.main.get.web.data.ts} (93%) rename models/bilibili/{bilibili.models.ts => bilibili.main.models.ts} (99%) rename models/bilibili/{bilibili.query.ts => bilibili.main.query.ts} (99%) rename models/bilibili/{bilibili.task.ts => bilibili.main.task.ts} (98%) rename models/bilibili/{bilibili.dm.img.ts => bilibili.risk.dm.img.ts} (100%) rename models/bilibili/{bilibili.ticket.ts => bilibili.risk.ticket.ts} (94%) rename models/bilibili/{bilibili.w_webid.ts => bilibili.risk.w_webid.ts} (91%) rename models/bilibili/{bilibili.wbi.ts => bilibili.risk.wbi.ts} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index db32144..2570a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # 2.0.5 +* 新增 User-Agent 配置项 * 优化获取动态数据 * 新增获取B站up数据的随机延迟配置项 * 新增puppeteer渲染图片测试脚本 diff --git a/apps/bilibili.ts b/apps/bilibili.ts index 611cad6..d5e0d59 100644 --- a/apps/bilibili.ts +++ b/apps/bilibili.ts @@ -1,10 +1,10 @@ import JSON from 'json5'; import lodash from 'lodash'; -import { BiliQuery } from '@/models/bilibili/bilibili.query'; -import { BiliTask } from '@/models/bilibili/bilibili.task'; +import { BiliQuery } from '@/models/bilibili/bilibili.main.query.js'; +import { BiliTask } from '@/models/bilibili/bilibili.main.task.js'; import Config from '@/utils/config'; import { _paths } from '@/utils/paths'; -import { BiliGetWebData } from '@/models/bilibili/bilibili.get.web.data'; +import { BiliGetWebData } from '@/models/bilibili/bilibili.main.get.web.data.js'; import { applyLoginQRCode, checkBiliLogin, @@ -17,7 +17,7 @@ import { saveLocalBiliCk, saveLoginCookie, readTempCk -} from '@/models/bilibili/bilibili.models'; +} from '@/models/bilibili/bilibili.main.models.js'; import plugin from '../../../lib/plugins/plugin.js'; declare const logger: any; diff --git a/defaultConfig/bilibili/config.yaml b/defaultConfig/bilibili/config.yaml index 36155dd..11bece7 100644 --- a/defaultConfig/bilibili/config.yaml +++ b/defaultConfig/bilibili/config.yaml @@ -8,6 +8,12 @@ pushStatus: 1 # "0 5,35,51 * * * *" #每小时固定第5分0秒、第35分0秒、第51分0秒检测一次,共3次/h pushTime: '*/23 * * * *' +# 请求头 User-Agent 列表。如出现 -352 风控,可尝试更换请求头,请根据需要自行添加或修改。可设置多个请求头,每次重启后会随机选择一个。获取方法请浏览器自行搜索。 +userAgentList: + - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 + #- Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0 + #- Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0 + # 推送监测间隔,单位为秒,默认7200秒即2小时,即以当前时间为基准,监测过去2小时内的动态,并推送。取值范围:3600-36000秒,即过去的1-10h。应大于pushTime的周期。 interval: 7200 @@ -41,7 +47,7 @@ pushMsgMode: 1 # 是否启用九宫格样式:默认 1 启用,0 不启用。此为最高优先级,九宫格为动态模式,特定大小/长宽比的图片资源将会动态启用九宫格/四宫格/无宫格样式。 boxGrid: 1 -# B站动态卡片分片截图模式:默认 1 启用 0 不启用。启用,将会推送每条动态的全部内容;不启用,动态内容过长时候将只推送7500px长度的动态卡片,需关闭宫格模式。 +# B站动态卡片分片截图模式:默认 1 启用 0 不启用。启用,将会推送每条动态的全部内容;不启用,动态内容过长时候将只推送noSplitHeight长度的动态卡片,需关闭宫格模式。 isSplit: 1 # 动态卡片非分片模式下的截图高度,默认7500px(仅填数字,无需填入单位),请勿设置过大或过小。关闭分片截图时生效。 diff --git a/models/bilibili/bilibili.api.ts b/models/bilibili/bilibili.api.ts deleted file mode 100644 index ed847ca..0000000 --- a/models/bilibili/bilibili.api.ts +++ /dev/null @@ -1,99 +0,0 @@ -export class BiliApi { - static BILIBIL_API = { - //获取动态资源列表 wbi/无wbi parama = { host_mid: uid, timezone_offset: -480, platform: 'web', features: 'itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote', web_location: "333.999", ...getDmImg(), "x-bili-device-req-json": { "platform": "web", "device": "pc" }, "x-bili-web-req-json": { "spm_id": "333.999" }, w_rid, wts } - biliDynamicInfoList: `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space`, - - //获取关注数与粉丝数 parama = { vmid: uid } - biliUpFollowFans: `https://api.bilibili.com/x/relation/stat`, - - //通过uid获取up详情 parama = { mid: uid, jsonp: jsonp } - biliSpaceUserInfo: `https://api.bilibili.com/x/space/acc/info`, - - //parama = { mid: uid, token: '',platform: 'web', web_location: 1550101, w_webid, w_rid, wts } - biliSpaceUserInfoWbi: `https://api.bilibili.com/x/space/wbi/acc/info`, - - //通过关键词${upKeyword}搜索up主 parama = { keyword: 'upKeyword', page: 1, search_type: 'bili_user', order: 'totalrank', pagesize: 5 } - biliSearchUp: `https://api.bilibili.com/x/web-interface/search/type`, - //通过关键词${upKeyword}搜索up主 parama = { keyword: 'upKeyword', page: 1, search_type: 'bili_user', order: 'totalrank' },需要wbi签名 - biliSearchUpWbi: `https://api.bilibili.com/x/web-interface/wbi/search/type`, - - biliLiveStatus: 'https://api.live.bilibili.com/room/v1/Room/get_status_info_by_uids', - biliCard: 'https://api.bilibili.com/x/web-interface/card', - biliStat: 'https://api.bilibili.com/x/relation/stat', - biliLiveUserInfo: 'https://api.live.bilibili.com/live_user/v1/Master/info', - biliOpusDetail: 'https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail' - }; - - static BILIBILI_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36'; - - /**header */ - static BILIBILI_HEADERS = { - 'Accept': '*/*', - 'Accept-Language': 'zh-CN,en-US;q=0.5', - 'Connection': 'keep-alive', - 'Accept-Encoding': 'gzip, deflate, br, zstd', - 'Cookie': '', - 'pragma': 'no-cache', - 'Cache-control': 'max-age=0', - 'DNT': '1', - 'Sec-GPC': '1', - 'sec-ch-ua-platform': '', - 'sec-ch-ua-mobile': '?0', - 'Sec-Fetch-Dest': 'empty', - 'Sec-Fetch-Mode': 'cors', - 'Sec-Fetch-Site': 'same-site', - 'Sec-Fetch-User': '?0', - 'Priority': 'u=4', - 'TE': 'trailers', - 'User-Agent': this.BILIBILI_USER_AGENT - }; - /**Login header */ - static BIlIBILI_LOGIN_HEADERS = { - 'Accept': '*/*', - 'Accept-Language': 'zh-CN,en-US;q=0.5', - 'Accept-Encoding': 'gzip, deflate, br, zstd', - 'DNT': '1', - 'Sec-GPC': '1', - 'Upgrade-Insecure-Requests': '1', - 'Sec-Fetch-Dest': 'document', - 'Sec-Fetch-Mode': 'navigate', - 'Sec-Fetch-Site': 'none', - 'Sec-Fetch-User': '?1', - 'TE': 'trailers' - }; - /**FullArticle header */ - static BILIBILI_ARTICLE_HEADERS = { - 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8', - 'Accept-Language': 'zh-CN,en-US;q=0.5', - 'Accept-Encoding': 'gzip, deflate, br, zstd', - 'Content-type': 'text/html; charset=utf-8', - 'Cookie': '', - 'pragma': 'no-cache', - 'Cache-control': 'no-cache', - 'DNT': '1', - 'Sec-GPC': '1', - 'sec-ch-ua-mobile': '?0', - 'Sec-Fetch-Dest': 'document', - 'Sec-Fetch-Mode': 'navigate', - 'Sec-Fetch-Site': 'same-site', - 'Sec-Fetch-User': '?1', - 'TE': 'trailers', - 'Upgrade-Insecure-Requests': '1', - 'User-Agent': this.BILIBILI_USER_AGENT - }; - - static BILIBILI_DYNAMIC_SPACE_HEADERS = { - 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', - 'Accept-Encoding': 'gzip, deflate, br, zstd', - 'Accept-Language': 'zh-CN,en-US;q=0.5', - 'Connection': 'keep-alive', - 'Priority': 'u=0, i', - 'Sec-Fetch-Dest': 'document', - 'Sec-Fetch-Mode': 'navigate', - 'Sec-Fetch-Site': 'none', - 'Sec-Fetch-User': '?1', - 'Sec-GPC': '1', - 'Upgrade-Insecure-Requests': '1', - 'User-Agent': this.BILIBILI_USER_AGENT - }; -} diff --git a/models/bilibili/bilibili.main.api.ts b/models/bilibili/bilibili.main.api.ts new file mode 100644 index 0000000..49401be --- /dev/null +++ b/models/bilibili/bilibili.main.api.ts @@ -0,0 +1,136 @@ +import Config from '@/utils/config'; + +class BiliApi { + biliConfigData: any; + USER_AGENT: string; + constructor() { + this.biliConfigData = Config.getUserConfig('bilibili', 'config'); + this.USER_AGENT = BiliApi.BILIBILI_USER_AGENT; + this.initialize(); + } + + static BILIBILI_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36'; + + //初始化User-Agent + async initialize() { + await this.initUserAgent(); + } + async initUserAgent() { + const userAgentList = await this.biliConfigData.userAgentList; + if (userAgentList && userAgentList.length > 0) { + const randomIndex = Math.floor(Math.random() * userAgentList.length); + this.USER_AGENT = String(userAgentList[randomIndex]); + } + } + + // 将静态常量赋值给实例属性 + get BILIBIL_API() { + return { + //获取动态资源列表 wbi/无wbi parama = { host_mid: uid, timezone_offset: -480, platform: 'web', features: 'itemOpusStyle,listOnlyfans,opusBigCover,onlyfansVote', web_location: "333.999", ...getDmImg(), "x-bili-device-req-json": { "platform": "web", "device": "pc" }, "x-bili-web-req-json": { "spm_id": "333.999" }, w_rid, wts } + biliDynamicInfoList: `https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/space`, + + //获取关注数与粉丝数 parama = { vmid: uid } + biliUpFollowFans: `https://api.bilibili.com/x/relation/stat`, + + //通过uid获取up详情 parama = { mid: uid, jsonp: jsonp } + biliSpaceUserInfo: `https://api.bilibili.com/x/space/acc/info`, + + //parama = { mid: uid, token: '',platform: 'web', web_location: 1550101, w_webid, w_rid, wts } + biliSpaceUserInfoWbi: `https://api.bilibili.com/x/space/wbi/acc/info`, + + //通过关键词${upKeyword}搜索up主 parama = { keyword: 'upKeyword', page: 1, search_type: 'bili_user', order: 'totalrank', pagesize: 5 } + biliSearchUp: `https://api.bilibili.com/x/web-interface/search/type`, + //通过关键词${upKeyword}搜索up主 parama = { keyword: 'upKeyword', page: 1, search_type: 'bili_user', order: 'totalrank' },需要wbi签名 + biliSearchUpWbi: `https://api.bilibili.com/x/web-interface/wbi/search/type`, + + biliLiveStatus: 'https://api.live.bilibili.com/room/v1/Room/get_status_info_by_uids', + biliCard: 'https://api.bilibili.com/x/web-interface/card', + biliStat: 'https://api.bilibili.com/x/relation/stat', + biliLiveUserInfo: 'https://api.live.bilibili.com/live_user/v1/Master/info', + biliOpusDetail: 'https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail' + }; + } + + /**header */ + get BILIBILI_HEADERS() { + return { + 'Accept': '*/*', + 'Accept-Language': 'zh-CN,en-US;q=0.5', + 'Connection': 'keep-alive', + 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Cookie': '', + 'pragma': 'no-cache', + 'Cache-control': 'max-age=0', + 'DNT': '1', + 'Sec-GPC': '1', + 'sec-ch-ua-platform': '', + 'sec-ch-ua-mobile': '?0', + 'Sec-Fetch-Dest': 'empty', + 'Sec-Fetch-Mode': 'cors', + 'Sec-Fetch-Site': 'same-site', + 'Sec-Fetch-User': '?0', + 'Priority': 'u=4', + 'TE': 'trailers', + 'User-Agent': this.USER_AGENT + }; + } + + /**Login header */ + get BIlIBILI_LOGIN_HEADERS() { + return { + 'Accept': '*/*', + 'Accept-Language': 'zh-CN,en-US;q=0.5', + 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'DNT': '1', + 'Sec-GPC': '1', + 'Upgrade-Insecure-Requests': '1', + 'Sec-Fetch-Dest': 'document', + 'Sec-Fetch-Mode': 'navigate', + 'Sec-Fetch-Site': 'none', + 'Sec-Fetch-User': '?1', + 'TE': 'trailers' + }; + } + + /**FullArticle header */ + get BILIBILI_ARTICLE_HEADERS() { + return { + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8', + 'Accept-Language': 'zh-CN,en-US;q=0.5', + 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Content-type': 'text/html; charset=utf-8', + 'Cookie': '', + 'pragma': 'no-cache', + 'Cache-control': 'no-cache', + 'DNT': '1', + 'Sec-GPC': '1', + 'sec-ch-ua-mobile': '?0', + 'Sec-Fetch-Dest': 'document', + 'Sec-Fetch-Mode': 'navigate', + 'Sec-Fetch-Site': 'same-site', + 'Sec-Fetch-User': '?1', + 'TE': 'trailers', + 'Upgrade-Insecure-Requests': '1', + 'User-Agent': this.USER_AGENT + }; + } + + get BILIBILI_DYNAMIC_SPACE_HEADERS() { + return { + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', + 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Accept-Language': 'zh-CN,en-US;q=0.5', + 'Connection': 'keep-alive', + 'Priority': 'u=0, i', + 'Sec-Fetch-Dest': 'document', + 'Sec-Fetch-Mode': 'navigate', + 'Sec-Fetch-Site': 'none', + 'Sec-Fetch-User': '?1', + 'Sec-GPC': '1', + 'Upgrade-Insecure-Requests': '1', + 'User-Agent': this.USER_AGENT + }; + } +} + +export default new BiliApi(); diff --git a/models/bilibili/bilibili.buid.fp.ts b/models/bilibili/bilibili.main.buid.fp.ts similarity index 100% rename from models/bilibili/bilibili.buid.fp.ts rename to models/bilibili/bilibili.main.buid.fp.ts diff --git a/models/bilibili/bilibili.get.web.data.ts b/models/bilibili/bilibili.main.get.web.data.ts similarity index 93% rename from models/bilibili/bilibili.get.web.data.ts rename to models/bilibili/bilibili.main.get.web.data.ts index ed72c70..8010933 100644 --- a/models/bilibili/bilibili.get.web.data.ts +++ b/models/bilibili/bilibili.main.get.web.data.ts @@ -1,10 +1,10 @@ import axios from 'axios'; import lodash from 'lodash'; -import { BiliApi } from '@/models/bilibili/bilibili.api'; -import { cookieWithBiliTicket, readSavedCookieItems, readSavedCookieOtherItems, readSyncCookie } from '@/models/bilibili/bilibili.models'; -import { getWbiSign } from '@/models/bilibili/bilibili.wbi'; -import { getDmImg } from '@/models/bilibili/bilibili.dm.img'; -import { getWebId } from '@/models/bilibili/bilibili.w_webid'; +import BiliApi from '@/models/bilibili/bilibili.main.api'; +import { cookieWithBiliTicket, readSavedCookieItems, readSavedCookieOtherItems, readSyncCookie } from '@/models/bilibili/bilibili.main.models'; +import { getWbiSign } from '@/models/bilibili/bilibili.risk.wbi'; +import { getDmImg } from '@/models/bilibili/bilibili.risk.dm.img'; +import { getWebId } from '@/models/bilibili/bilibili.risk.w_webid'; export class BiliGetWebData { constructor(e?) {} diff --git a/models/bilibili/bilibili.models.ts b/models/bilibili/bilibili.main.models.ts similarity index 99% rename from models/bilibili/bilibili.models.ts rename to models/bilibili/bilibili.main.models.ts index e83b2ab..0a8616d 100644 --- a/models/bilibili/bilibili.models.ts +++ b/models/bilibili/bilibili.main.models.ts @@ -10,10 +10,9 @@ import { LoginProps } from '@/components/loginQrcode/Page'; import { renderPage } from '@/utils/image'; import { _paths } from '@/utils/paths'; import { ScreenshotOptions } from '@/utils/puppeteer.render'; -import { BiliApi } from '@/models/bilibili/bilibili.api'; -import { gen_buvid_fp } from '@/models/bilibili/bilibili.buid.fp'; -import { getBiliTicket } from '@/models/bilibili/bilibili.ticket'; - +import BiliApi from '@/models/bilibili/bilibili.main.api'; +import { gen_buvid_fp } from '@/models/bilibili/bilibili.main.buid.fp'; +import { getBiliTicket } from '@/models/bilibili/bilibili.risk.ticket'; declare const logger: any, Bot: any, redis: any, segment: any; /** diff --git a/models/bilibili/bilibili.query.ts b/models/bilibili/bilibili.main.query.ts similarity index 99% rename from models/bilibili/bilibili.query.ts rename to models/bilibili/bilibili.main.query.ts index ad90afb..5ee131c 100644 --- a/models/bilibili/bilibili.query.ts +++ b/models/bilibili/bilibili.main.query.ts @@ -1,6 +1,6 @@ import moment from 'moment'; -import { cookieWithBiliTicket, readSyncCookie } from '@/models/bilibili/bilibili.models'; -import { BiliApi } from '@/models/bilibili/bilibili.api'; +import { cookieWithBiliTicket, readSyncCookie } from '@/models/bilibili/bilibili.main.models'; +import BiliApi from '@/models/bilibili/bilibili.main.api'; import axios from 'axios'; import lodash from 'lodash'; diff --git a/models/bilibili/bilibili.task.ts b/models/bilibili/bilibili.main.task.ts similarity index 98% rename from models/bilibili/bilibili.task.ts rename to models/bilibili/bilibili.main.task.ts index 08eab0c..208f41f 100644 --- a/models/bilibili/bilibili.task.ts +++ b/models/bilibili/bilibili.main.task.ts @@ -3,9 +3,9 @@ import { MainProps } from '@/components/dynamic/MainPage'; import Config from '@/utils/config'; import { renderPage } from '@/utils/image'; import { ScreenshotOptions } from '@/utils/puppeteer.render'; -import { BiliGetWebData } from '@/models/bilibili/bilibili.get.web.data'; -import { postGateway, readSyncCookie } from '@/models/bilibili/bilibili.models'; -import { BiliQuery } from '@/models/bilibili/bilibili.query'; +import { BiliGetWebData } from '@/models/bilibili/bilibili.main.get.web.data'; +import { postGateway, readSyncCookie } from '@/models/bilibili/bilibili.main.models'; +import { BiliQuery } from '@/models/bilibili/bilibili.main.query'; declare const Bot: any, redis: any, segment: any; diff --git a/models/bilibili/bilibili.dm.img.ts b/models/bilibili/bilibili.risk.dm.img.ts similarity index 100% rename from models/bilibili/bilibili.dm.img.ts rename to models/bilibili/bilibili.risk.dm.img.ts diff --git a/models/bilibili/bilibili.ticket.ts b/models/bilibili/bilibili.risk.ticket.ts similarity index 94% rename from models/bilibili/bilibili.ticket.ts rename to models/bilibili/bilibili.risk.ticket.ts index c0f5007..938802a 100644 --- a/models/bilibili/bilibili.ticket.ts +++ b/models/bilibili/bilibili.risk.ticket.ts @@ -1,6 +1,6 @@ import fetch from 'node-fetch'; import { createHmac } from 'crypto'; -import { BiliApi } from '@/models/bilibili/bilibili.api'; +import BiliApi from '@/models/bilibili/bilibili.main.api'; /** * Generate HMAC-SHA256 signature diff --git a/models/bilibili/bilibili.w_webid.ts b/models/bilibili/bilibili.risk.w_webid.ts similarity index 91% rename from models/bilibili/bilibili.w_webid.ts rename to models/bilibili/bilibili.risk.w_webid.ts index 4c59c3a..5ab8591 100644 --- a/models/bilibili/bilibili.w_webid.ts +++ b/models/bilibili/bilibili.risk.w_webid.ts @@ -1,7 +1,7 @@ import axios from 'axios'; import lodash from 'lodash'; -import { BiliApi } from '@/models/bilibili//bilibili.api'; -import { cookieWithBiliTicket, readSyncCookie } from '@/models/bilibili/bilibili.models'; +import BiliApi from '@/models/bilibili/bilibili.main.api'; +import { cookieWithBiliTicket, readSyncCookie } from '@/models/bilibili/bilibili.main.models'; declare const redis: any; diff --git a/models/bilibili/bilibili.wbi.ts b/models/bilibili/bilibili.risk.wbi.ts similarity index 100% rename from models/bilibili/bilibili.wbi.ts rename to models/bilibili/bilibili.risk.wbi.ts diff --git a/package.json b/package.json index 1ec1cee..73db3d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yuki-plugin", - "version": "2.0.5-9", + "version": "2.0.5-10", "author": "snowtafir", "description": "优纪插件,yunzai-V4 关于 微博推送、B站推送 等功能的拓展插件", "main": "./index",