From 0860d7b8c212ad7291ade26115e84906027c9d13 Mon Sep 17 00:00:00 2001 From: wangdl Date: Wed, 27 May 2026 21:55:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(ios):=20=E4=BF=AE=E6=AD=A3=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=A1=AE=E8=AE=A4=E4=B8=8A=E4=BC=A0=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=20confirm-upload=20=E2=86=92=20complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端接口是 POST /files/complete,不是 confirm-upload Co-Authored-By: Claude Opus 4.7 --- AIStudyApp/AIStudyApp/Core/Services/FileUploadService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AIStudyApp/AIStudyApp/Core/Services/FileUploadService.swift b/AIStudyApp/AIStudyApp/Core/Services/FileUploadService.swift index 4d2500f..45818f1 100644 --- a/AIStudyApp/AIStudyApp/Core/Services/FileUploadService.swift +++ b/AIStudyApp/AIStudyApp/Core/Services/FileUploadService.swift @@ -35,7 +35,7 @@ class FileUploadService { // 确认上传 let confirmResp: FileConfirmUploadResponse = try await client.request( - "/files/confirm-upload", method: "POST", + "/files/complete", method: "POST", body: FileConfirmUploadRequest(objectKey: urlResp.objectKey, checksum: nil) )