fix:修复
This commit is contained in:
parent
2cd24098df
commit
dcc3cc4a7d
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user