From 038f5d84ed070b108b1c0e07eb83266dbe2f6663 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Wed, 23 Aug 2023 15:19:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A3=81=E5=89=AA=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/file/upload.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/file/upload.go b/utils/file/upload.go index dbeaa8c5..6272de5e 100644 --- a/utils/file/upload.go +++ b/utils/file/upload.go @@ -46,7 +46,7 @@ type UploadBaseRes struct { } func (upload *Upload) UploadFileByBase64(req *UploadBaseReq) (*UploadBaseRes, error) { - fmt.Println("base64上传参数:", req) + fmt.Printf("base64上传参数:%+v", req) // 定义存储桶名称 var bucketName *string var apiType int64 = req.ApiType @@ -71,6 +71,12 @@ func (upload *Upload) UploadFileByBase64(req *UploadBaseReq) (*UploadBaseRes, er var resourceId string = req.FileHash var uploadBaseRes = UploadBaseRes{} + + // var refresh bool + + // if req.ResourceId != "" { + // refresh = true + // } err := upload.MysqlConn.Transaction(func(tx *gorm.DB) (err error) { var resourceInfo *gmodel.FsResource