From 3e31666cd659a40c54cd16af7bbb39322f45f9ac Mon Sep 17 00:00:00 2001 From: zhanghaixin246 <31946229+zhanghaixin246@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:22:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=8A=9B=E5=87=BA=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=20(#1515?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/example/exa_file_upload_download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/service/example/exa_file_upload_download.go b/server/service/example/exa_file_upload_download.go index 15ccd824..15e2d70c 100644 --- a/server/service/example/exa_file_upload_download.go +++ b/server/service/example/exa_file_upload_download.go @@ -92,7 +92,7 @@ func (e *FileUploadAndDownloadService) UploadFile(header *multipart.FileHeader, oss := upload.NewOss() filePath, key, uploadErr := oss.UploadFile(header) if uploadErr != nil { - panic(err) + panic(uploadErr) } s := strings.Split(header.Filename, ".") f := example.ExaFileUploadAndDownload{