新增阿里云OSS上传文件逻辑

This commit is contained in:
momo 2023-11-20 14:49:18 +08:00
parent fea04f12d7
commit 111e450096

View File

@ -99,7 +99,6 @@ func (l *UploadFileBaseLogic) UploadFileBase(req *types.UploadFileBaseReq, useri
upload.AliyunOSS.BucketUrl = l.svcCtx.Config.AliyunOSS.BucketUrl
upload.AliyunOSS.BasePath = l.svcCtx.Config.AliyunOSS.BasePath
time.AfterFunc(time.Second*1, func() {
err = upload.UploadFileByUrl(resourceId, uploadRes.ResourceUrl)
})
}