This commit is contained in:
2026-02-24 00:38:23 +08:00
parent f63e6b92bd
commit d69a99882f
12 changed files with 133 additions and 77 deletions

View File

@@ -70,20 +70,19 @@ async function handleAnalyzeUser() {
hasMore.value = false
await clearData()
const req = await TikhubService.postTikHup({
type: InterfaceType.DOUYIN_WEB_USER_POST_VIDEOS,
methodType: MethodType.GET,
urlParams: {
sec_user_id,
max_cursor: 0,
type: 'tik-app',
sort_type: form.value.sort_type,
count: form.value.count || 20,
},
})
try {
const resp = await req
const resp = await TikhubService.postTikHup({
type: InterfaceType.DOUYIN_WEB_USER_POST_VIDEOS,
methodType: MethodType.GET,
urlParams: {
sec_user_id,
max_cursor: 0,
type: 'tik-app',
sort_type: form.value.sort_type,
count: form.value.count || 20,
},
})
const result = processApiResponse(resp, form.value.platform)
maxCursor.value = result.maxCursor
hasMore.value = result.hasMore
@@ -190,20 +189,19 @@ async function handleLoadMore() {
}
loadingMore.value = true
const req = await TikhubService.postTikHup({
type: InterfaceType.DOUYIN_WEB_USER_POST_VIDEOS,
methodType: MethodType.GET,
urlParams: {
sec_user_id,
max_cursor: maxCursor.value,
type: 'tik-app',
sort_type: form.value.sort_type,
count: form.value.count || 20,
},
})
try {
const resp = await req
const resp = await TikhubService.postTikHup({
type: InterfaceType.DOUYIN_WEB_USER_POST_VIDEOS,
methodType: MethodType.GET,
urlParams: {
sec_user_id,
max_cursor: maxCursor.value,
type: 'tik-app',
sort_type: form.value.sort_type,
count: form.value.count || 20,
},
})
if (form.value.platform === '抖音') {
const { mapFromDouyin } = await import('./utils/benchmarkUtils')