Skip to content

Commit 3102285

Browse files
committed
add fog cn east 1 zone
1 parent b0556e5 commit 3102285

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

QiniuDemo/QiniuDemo/ViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ - (IBAction)uploadAction:(UIButton *)sender {
4848
if (self.uploadState == UploadStatePrepare) {
4949

5050
#ifdef YourToken
51-
NSString *path = [[NSBundle mainBundle] pathForResource:@"UploadResource.dmg" ofType:nil];
52-
// NSString *path = [[NSBundle mainBundle] pathForResource:@"UploadResource_49M.zip" ofType:nil];
51+
// NSString *path = [[NSBundle mainBundle] pathForResource:@"UploadResource.dmg" ofType:nil];
52+
NSString *path = [[NSBundle mainBundle] pathForResource:@"UploadResource_49M.zip" ofType:nil];
5353
[self uploadImageToQNFilePath:path];
5454
[self changeUploadState:UploadStateUploading];
5555
#else

QiniuSDK/Common/QNFixedZone.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,20 @@ NS_ASSUME_NONNULL_BEGIN
4444
* zone As0 新加坡
4545
*
4646
* @return 实例
47-
*/
47+
*/
4848
+ (instancetype)zoneAs0;
4949

5050
/**
5151
* zone fog-cn-east-1 雾存储 华东-1
5252
* 分片上传暂时仅支持分片 api v2
53-
* 分片 api v2设置方式:QNConfiguration.resumeUploadVersion = QNResumeUploadVersionV2
53+
* 分片 api v2设置方式:配置 QNConfiguration 的 resumeUploadVersion 为 QNResumeUploadVersionV2
54+
* eg:
55+
* QNConfiguration *configuration = [QNConfiguration build:^(QNConfigurationBuilder *builder) {
56+
* builder.resumeUploadVersion = QNResumeUploadVersionV2;
57+
* }];
5458
*
5559
* @return 实例
56-
*/
60+
*/
5761
+ (instancetype)zoneFogCnEast1;
5862

5963
/**

0 commit comments

Comments
 (0)