fix: getUploaderVideos 加 WBI 签名,移除调试 log

This commit is contained in:
Developer
2026-03-26 00:26:10 +08:00
parent 8f733b6c34
commit 749dbb81ef

View File

@@ -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 }> { 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', { const { imgKey, subKey } = await getWbiKeys();
params: { mid, pn, ps, order: 'pubdate', platform: 'web' }, 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 vlist: any[] = res.data?.data?.list?.vlist ?? [];
const total: number = res.data?.data?.page?.count ?? 0; const total: number = res.data?.data?.page?.count ?? 0;
const videos: VideoItem[] = vlist.map((v: any) => ({ const videos: VideoItem[] = vlist.map((v: any) => ({