From 6ce0f7d8b0fcfb604652af6a898da735680ec630 Mon Sep 17 00:00:00 2001 From: helti Date: Wed, 5 Feb 2025 21:49:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4bilibili=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/bilibili.ts | 5 ++--- src/routes/github.ts | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/routes/bilibili.ts b/src/routes/bilibili.ts index 5305da5..0d773f0 100644 --- a/src/routes/bilibili.ts +++ b/src/routes/bilibili.ts @@ -10,13 +10,12 @@ const typeMap: Record = { "3": "音乐", "4": "游戏", "5": "娱乐", - "36": "科技", + "188": "科技", "119": "鬼畜", "129": "舞蹈", "155": "时尚", "160": "生活", "168": "国创相关", - "188": "数码", "181": "影视", }; @@ -44,7 +43,7 @@ export const handleRoute = async (c: ListContext, noCache: boolean) => { const getList = async (options: Options, noCache: boolean): Promise => { const { type } = options; const wbiData = await getBiliWbi(); - const url = `https://api.bilibili.com/x/web-interface/ranking/v2?tid=${type}&type=all&${wbiData}`; + const url = `https://api.bilibili.com/x/web-interface/ranking/v2?rid=${type}&type=all&${wbiData}`; const result = await get({ url, headers: { diff --git a/src/routes/github.ts b/src/routes/github.ts index 1e78600..305355d 100644 --- a/src/routes/github.ts +++ b/src/routes/github.ts @@ -49,8 +49,8 @@ export const handleRoute = async (c: ListContext) => { type: typeMap[type], params: { type: { - name: typeMap[type], - type: type, + name: '排行榜分区', + type: typeMap, }, }, link: `https://github.com/trending?since=${type}`,