mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-07 12:17:02 +08:00
fix: Minio AccessURL
This commit is contained in:
parent
1be3bb2f6c
commit
b89a611e8f
@ -401,9 +401,9 @@ func (m *Minio) AccessURL(ctx context.Context, name string, expire time.Duration
|
||||
if opt.Video != nil {
|
||||
query.Set("type", "video")
|
||||
query.Set("time", strconv.Itoa(int(opt.Video.Time/time.Millisecond)))
|
||||
query.Set("width", strconv.Itoa(opt.Image.Width))
|
||||
query.Set("height", strconv.Itoa(opt.Image.Height))
|
||||
query.Set("format", opt.Image.Format)
|
||||
query.Set("width", strconv.Itoa(opt.Video.Width))
|
||||
query.Set("height", strconv.Itoa(opt.Video.Height))
|
||||
query.Set("format", opt.Video.Format)
|
||||
}
|
||||
return m.imageApi + query.Encode(), nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user