Compare commits

..

No commits in common. "c08b4bf90dea966b6cabf0c25e55453eaac2e4b3" and "55275db61886e7da151f5888e9390e3c96a07d6f" have entirely different histories.

View File

@ -56,11 +56,12 @@ type PutRet struct {
User string `json:"user"` User string `json:"user"`
} }
func New(accessKey, secretKey, bucket, domain, securityKey string) QiNiu { func New(accessKey, secretKey, bucket, domain, securityKey string, region *storage.Region) QiNiu {
mac := qbox.NewMac(accessKey, secretKey) mac := qbox.NewMac(accessKey, secretKey)
conf := &storage.Config{ conf := &storage.Config{
UseHTTPS: true, //是否使用https域名 Region: region, //空间所在的存储区域
UseCdnDomains: false, //上传是否使用CDN上传加速 UseHTTPS: true, //是否使用https域名
UseCdnDomains: false, //上传是否使用CDN上传加速
} }
return &qiNiu{ return &qiNiu{
mac: mac, mac: mac,