diff --git a/src/pages/graduation/GraduationDownloadView.vue b/src/pages/graduation/GraduationDownloadView.vue index 5bcb45b..f6fd55b 100644 --- a/src/pages/graduation/GraduationDownloadView.vue +++ b/src/pages/graduation/GraduationDownloadView.vue @@ -6,16 +6,16 @@ const id = ref("") type FileRecord = { id: string - status: "processing" | "done" + status: "processing" | "ready" | "not_found" } const fileStatus = ref() const getFileStatus = async (id: string): Promise => { - // TODO - // return (await fetch(`http://localhost:3000/api/graduation/${id}`)) as any - return { - id: undefined, - status: "processing", + try { + const res: FileRecord = await fetch(`https://api.nbtca.space/static/graduation/${id}/info.json`).then(res => res.json()) + return res + } catch (error) { + return { id, status: "not_found" } } } const setStatus = async () => { @@ -40,21 +40,45 @@ onMounted(() => { 2024 毕业典礼拍摄
-
-
+
+
我们没有找到相应的文件,请确认链接是否正确。
我们正在处理你的照片,这可能需要1-2天。请稍后再来试试。
-
-
文件已经处理完成,你可以点击下方链接下载。
-
- 下载文件 +
+
文件已经处理完成,你可以点击下方链接下载。
+
-
+
如果你有任何问题,可以通过邮件联系我们。