From 1df35100de1c8f8986ea4d8885f3a02261bd93c8 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 7 Aug 2023 19:32:56 +0800 Subject: [PATCH] fix: cos option --- pkg/common/db/s3/oss/oss.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/common/db/s3/oss/oss.go b/pkg/common/db/s3/oss/oss.go index 95b757f57..5d55b7096 100644 --- a/pkg/common/db/s3/oss/oss.go +++ b/pkg/common/db/s3/oss/oss.go @@ -318,7 +318,8 @@ func (o *OSS) AccessURL(ctx context.Context, name string, expire time.Duration, if opt.Video.Height > 0 { process += ",h_" + strconv.Itoa(opt.Video.Height) } - process += ",m_fast" + process += ",ar_auto,m_fast" + fmt.Println(process) opts = append(opts, oss.Process(process)) } if opt.ContentType != "" {