fix:base上传强制更新

This commit is contained in:
momo
2023-08-22 10:54:33 +08:00
parent 0440bd02a4
commit 462ac4915b
7 changed files with 16 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ func (l *UploadFileFrontendLogic) UploadFileFrontend(req *types.RequestUploadFil
return resp.SetStatus(basic.CodeS3CategoryErr)
}
now := time.Now()
now := time.Now().UTC()
category := format.TypeCategory(req.Category)
ObjectKey := aws.String(format.FormatS3KeyName(
keytype,

View File

@@ -22,7 +22,7 @@ type UploadFileBaseReq struct {
GuestId int64 `form:"guest_id,optional"` // 上传文件额外信息
UploadBucket int64 `form:"upload_bucket,options=[1,2],default=1"` // 上传桶名:1=缓存,2=持久
Source string `form:"source"` // 上传来源
Refresh bool `form:"refresh"` // 强制更新
Refresh bool `form:"refresh,optional"` // 强制更新
}
type UploadLogoReq struct {