fix:base上传强制更新
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user