Skip to content

Commit d83a71e

Browse files
author
erichmzhang
committed
COSXML 5.0.1 新增园区支持
1 parent ba26cb2 commit d83a71e

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

QCloudCOSXML.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "QCloudCOSXML"
3-
s.version = "5.0.0"
3+
s.version = "5.0.1"
44
s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
55

66
s.homepage = "https://cloud.tencent.com/"
@@ -9,5 +9,5 @@ Pod::Spec.new do |s|
99
s.source = { :git => "https://github.com/tencentyun/qcloud-sdk-ios.git", :tag => s.version.to_s }
1010
s.ios.deployment_target = '8.0'
1111
s.source_files = 'QCloudCOSXML/Classes/**/*'
12-
s.dependency 'QCloudCore','5.0.0'
12+
s.dependency 'QCloudCore','5.0.1'
1313
end

QCloudCOSXML/Classes/QCloudCOSXMLEndPoint.h

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@
1313
@interface QCloudCOSXMLEndPoint : QCloudEndPoint
1414
/**
1515
服务地域名称, 目前可用的服务地域名称有:
16-
17-
*. cn-south 华南
18-
*. cn-north 华北
19-
*. cn-east 华东
20-
*. cn-southwest 西南
21-
*. sg 新加坡
22-
16+
*.ap-beijing-1 北京一区(华北)
17+
*.ap-beijing 北京
18+
*.ap-shanghai 上海(华东)
19+
*.ap-guangzhou 广州(华南)
20+
*.ap-guangzhou-2 广州(视频云)
21+
*.ap-chengdu 成都(西南)
22+
*.ap-singapore 新加坡
23+
*.ap-hongkong 香港
24+
*.na-toronto 多伦多
25+
*.eu-frankfurt 法兰克福
26+
*.cn-north 华北
2327
*/
2428
@property (nonatomic, copy) QCloudRegion regionName;
2529

QCloudCOSXML/Classes/QCloudCOSXMLEndPoint.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ - (NSURL*) serverURLWithBucket:(NSString *)bucket appID:(NSString *)appID
2525
NSString* scheme = @"https";
2626
if (!self.useHTTPS) {
2727
scheme = @"http";
28-
}
29-
return [NSURL URLWithString:[NSString stringWithFormat:@"%@://%@-%@.%@.%@", scheme, bucket, appID, [self regionName], [self serviceName]]];
28+
}
29+
return [NSURL URLWithString:[NSString stringWithFormat:@"%@://%@-%@.cos.%@.%@",scheme,bucket,appID,self.regionName,self.serviceName]];
3030
}
3131
@end

QCloudCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = "QCloudCore"
11-
s.version = "5.0.0"
11+
s.version = "5.0.1"
1212
s.summary = "QCloudCore--腾讯云iOS-SDK Foundation"
1313

1414
# This description is used to generate tags and improve search results.

0 commit comments

Comments
 (0)