Merge pull request '[🚀] region' (#5) from dev into main

Reviewed-on: #5
This commit is contained in:
bvbej 2024-08-06 10:16:19 +08:00
commit c08b4bf90d

View File

@ -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,