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}`,