From 77289e68b4de1f894f68c53985c29098c3abcf1e Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Fri, 15 Sep 2023 11:39:19 +0800 Subject: [PATCH] s3 public read --- pkg/common/db/s3/cos/cos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/s3/cos/cos.go b/pkg/common/db/s3/cos/cos.go index 9d188462c..4d9d8d098 100644 --- a/pkg/common/db/s3/cos/cos.go +++ b/pkg/common/db/s3/cos/cos.go @@ -306,7 +306,7 @@ func (c *Cos) AccessURL(ctx context.Context, name string, expire time.Duration, } else if expire < time.Second { expire = time.Second } - rawURL, err := c.client.Object.GetPresignedURL(ctx, http.MethodGet, name, c.credential.SecretID, c.credential.SecretKey, expire, &option) + rawURL, err := c.getPresignedURL(ctx, name, expire, &option) if err != nil { return "", err }