|
|
@@ -37,7 +37,7 @@ public class QiniuBuilder {
|
|
|
|
|
|
@SneakyThrows
|
|
|
public static OssTemplate template(Oss oss, OssRule ossRule) {
|
|
|
- Configuration cfg = new Configuration(Zone.zone0());
|
|
|
+ Configuration cfg = new Configuration(Zone.autoZone());
|
|
|
Auth auth = Auth.create(oss.getAccessKey(), oss.getSecretKey());
|
|
|
UploadManager uploadManager = new UploadManager(cfg);
|
|
|
BucketManager bucketManager = new BucketManager(auth, cfg);
|