From 749dbb81ef5c200e3de92413faa54d7287b6e97b Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 26 Mar 2026 00:26:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20getUploaderVideos=20=E5=8A=A0=20WBI=20?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=B0=83=E8=AF=95?= =?UTF-8?q?=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/bilibili.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/bilibili.ts b/services/bilibili.ts index 2a225dd..7ff8a39 100644 --- a/services/bilibili.ts +++ b/services/bilibili.ts @@ -193,9 +193,9 @@ export async function getUploaderInfo(mid: number): Promise<{ name: string; face } export async function getUploaderVideos(mid: number, pn = 1, ps = 20): Promise<{ videos: VideoItem[]; total: number }> { - const res = await api.get('/x/space/wbi/arc/search', { - params: { mid, pn, ps, order: 'pubdate', platform: 'web' }, - }); + const { imgKey, subKey } = await getWbiKeys(); + const signed = signWbi({ mid, pn, ps, order: 'pubdate', platform: 'web' }, imgKey, subKey); + const res = await api.get('/x/space/wbi/arc/search', { params: signed }); const vlist: any[] = res.data?.data?.list?.vlist ?? []; const total: number = res.data?.data?.page?.count ?? 0; const videos: VideoItem[] = vlist.map((v: any) => ({