diff --git a/api/constants.ts b/api/constants.ts index 06ee960..08eac7f 100644 --- a/api/constants.ts +++ b/api/constants.ts @@ -1 +1 @@ -export const BASE_URL = "/api/proxy" +export const BASE_URL = "https://movieflow.api.huiying.video" diff --git a/components/pages/home-page2.tsx b/components/pages/home-page2.tsx index f199b7d..4ec0a2e 100644 --- a/components/pages/home-page2.tsx +++ b/components/pages/home-page2.tsx @@ -43,7 +43,7 @@ export function HomePage2() { setIsLoadingResources(true); const response = await getResourcesList({ published: 1 }); console.log(response); - if (response.code === 0 && response.successfull) { + if (response.code === 0) { setResources(response.data); } else { console.error('获取资源列表失败:', response.message);