Skip to content

Let's use AI to Earn!

fix: 修复热门标题接口

牛文政a9a9f3be72ae
diff --git a/src/api/platform.ts b/src/api/platform.ts
index 051d6bbc..22ef984d 100644
--- a/src/api/platform.ts
+++ b/src/api/platform.ts
@@ -244,11 +244,19 @@ export const platformApi = {
},
// 获取平台下指定分类的数据列表(分页)
- findByPlatformAndCategory(platformId: string) {
+ findByPlatformAndCategory(
+ platformId: string,
+ params: {
+ category?: string;
+ startTime?: Date;
+ endTime?: Date;
+ },
+ ) {
return hotHttp.get<Pagination<ViralTitle>>(
- `/viral-titles/platforms/${platformId}/top-by-categories`,
+ `/viral-titles/platforms/${platformId}`,
{
isToken: false,
+ params,
},
);
},