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