fix:裁剪业务逻辑调整

This commit is contained in:
momo 2023-08-23 15:19:49 +08:00
parent cda4c42b37
commit 038f5d84ed

View File

@ -46,7 +46,7 @@ type UploadBaseRes struct {
} }
func (upload *Upload) UploadFileByBase64(req *UploadBaseReq) (*UploadBaseRes, error) { func (upload *Upload) UploadFileByBase64(req *UploadBaseReq) (*UploadBaseRes, error) {
fmt.Println("base64上传参数", req) fmt.Printf("base64上传参数%+v", req)
// 定义存储桶名称 // 定义存储桶名称
var bucketName *string var bucketName *string
var apiType int64 = req.ApiType var apiType int64 = req.ApiType
@ -71,6 +71,12 @@ func (upload *Upload) UploadFileByBase64(req *UploadBaseReq) (*UploadBaseRes, er
var resourceId string = req.FileHash var resourceId string = req.FileHash
var uploadBaseRes = UploadBaseRes{} var uploadBaseRes = UploadBaseRes{}
// var refresh bool
// if req.ResourceId != "" {
// refresh = true
// }
err := upload.MysqlConn.Transaction(func(tx *gorm.DB) (err error) { err := upload.MysqlConn.Transaction(func(tx *gorm.DB) (err error) {
var resourceInfo *gmodel.FsResource var resourceInfo *gmodel.FsResource