fix:修复

This commit is contained in:
Hiven 2023-08-07 19:51:12 +08:00
parent 2cd24098df
commit dcc3cc4a7d
2 changed files with 15 additions and 8 deletions

View File

@ -61,9 +61,12 @@ func (l *UploadFileBaseLogic) UploadFileBase(req *types.UploadFileBaseReq, useri
userId = userinfo.UserId
uid = userId
}
guestId = req.GuestId
userId = req.UserId
if guestId == 0 {
guestId = req.GuestId
}
if userId == 0 {
userId = req.UserId
}
// 定义存储桶名称
var bucketName *string

View File

@ -110,12 +110,16 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
// }
// resultStr = string(b)
// 上传图片
var reqs types.UploadFileBaseReq
// reqs.FileType =
// // 上传图片
// var reqs types.UploadFileBaseReq
// reqs.ApiType = 2
// reqs.UploadBucket = 2
// reqs.Metadata = ""
// reqs.FileData = ""
// reqs.FileKey = ""
// 创建一个业务逻辑层实例
NewUploadFileBaseLogic(l.ctx, l.svcCtx).UploadFileBase(&reqs, userinfo)
// // 创建一个业务逻辑层实例
// resUpload := NewUploadFileBaseLogic(l.ctx, l.svcCtx).UploadFileBase(&reqs, userinfo)
var module = "logo"
var nowTime = time.Now().Unix()