From 74e88e62d58c7fd207e1fdc79e91f28f723e70bf Mon Sep 17 00:00:00 2001 From: bvbej Date: Tue, 6 Aug 2024 10:15:56 +0800 Subject: [PATCH] =?UTF-8?q?[=F0=9F=9A=80]=20region?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qiniu/storage.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/qiniu/storage.go b/pkg/qiniu/storage.go index 5df1be3..ebed3da 100644 --- a/pkg/qiniu/storage.go +++ b/pkg/qiniu/storage.go @@ -56,12 +56,11 @@ type PutRet struct { User string `json:"user"` } -func New(accessKey, secretKey, bucket, domain, securityKey string, region *storage.Region) QiNiu { +func New(accessKey, secretKey, bucket, domain, securityKey string) QiNiu { mac := qbox.NewMac(accessKey, secretKey) conf := &storage.Config{ - Region: region, //空间所在的存储区域 - UseHTTPS: true, //是否使用https域名 - UseCdnDomains: false, //上传是否使用CDN上传加速 + UseHTTPS: true, //是否使用https域名 + UseCdnDomains: false, //上传是否使用CDN上传加速 } return &qiNiu{ mac: mac,