Compare commits

..

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

View File

@ -56,9 +56,10 @@ type PutRet struct {
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)
conf := &storage.Config{
Region: region, //空间所在的存储区域
UseHTTPS: true, //是否使用https域名
UseCdnDomains: false, //上传是否使用CDN上传加速
}