mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
fix: getUploaderVideos 加 WBI 签名,移除调试 log
This commit is contained in:
@@ -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) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user