Skip to content

Commit bd50748

Browse files
author
garenwang
committed
# 5.7.8
1. storageClass增加智能分层和深度归档两种类型 2. 增加设置和获取存储桶智能分层存储配置的接口 3. 修复写日志时隐磁盘空间不足导致的crash 4. 上传时检测文件是否存在,不存在抛出错误。 5. 支持用户自定义需要签名的header和paramate,可通过shouldSignedList设置 6. 支持用户自定义签名是拼接在url还是host中:可通过请求的isSignedInURL属性设置
1 parent 4ed7362 commit bd50748

File tree

72 files changed

+2025
-1239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2025
-1239
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
# 5.7.8
2+
1. storageClass增加智能分层和深度归档两种类型
3+
2. 增加设置和获取存储桶智能分层存储配置的接口
4+
3. 修复写日志时隐磁盘空间不足导致的crash
5+
4. 上传时检测文件是否存在,不存在抛出错误。
6+
5. 支持用户自定义需要签名的header和paramate,可通过shouldSignedList设置
7+
6. 支持用户自定义签名是拼接在url还是host中:可通过请求的isSignedInURL属性设置
8+
19
# 5.7.7
2-
- 修复本地二次校验依赖md5导致校验失败的问题
10+
修MD5
311

412
# 5.7.6
513
- fix上传crash

QCloudCOSXML.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "QCloudCOSXML"
33

4-
s.version = "5.7.7"
4+
s.version = "5.7.8"
55

66
s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
77

@@ -17,15 +17,15 @@ s.version = "5.7.7"
1717
s.default_subspec = 'Default'
1818
s.subspec 'Default' do |default|
1919
default.source_files = 'QCloudCOSXML/Classes/**/*','Models/request.model','QCloudCOSXML/Classes/QCloudCOSXML/*'
20-
default.dependency "QCloudCore",'5.7.7'
20+
default.dependency "QCloudCore",'5.7.8'
2121
end
2222
s.subspec 'Slim' do |slim|
2323
slim.source_files = 'QCloudCOSXML/Classes/**/*','Models/request.model','QCloudCOSXML/Classes/QCloudCOSXML/*'
24-
slim.dependency "QCloudCore/WithoutMTA",'5.7.7'
24+
slim.dependency "QCloudCore/WithoutMTA",'5.7.8'
2525
end
2626
s.subspec 'Transfer' do |transfer|
2727
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/*'
28-
transfer.dependency "QCloudCore/WithoutMTA",'5.7.7'
28+
transfer.dependency "QCloudCore/WithoutMTA",'5.7.8'
2929
end
3030

3131
end

QCloudCOSXML/Classes/Base/QCloudCOSXMLService.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ + (QCloudCOSXMLService*) defaultCOSXML
5858
+ (QCloudCOSXMLService*) registerDefaultCOSXMLWithConfiguration:(QCloudServiceConfiguration*)configuration
5959
{
6060
@synchronized (self) {
61+
if (COSXMLService) {
62+
@throw [NSException exceptionWithName:QCloudErrorDomain reason:[NSString stringWithFormat:@"默认的COSXMLService已存在,如有新的配置,请通过 registerCOSXMLWithConfiguration:withKey:重新注册"] userInfo:nil];
63+
}
6164
COSXMLService = [[QCloudCOSXMLService alloc] initWithConfiguration:configuration];
6265
if (!configuration.isCloseShareLog) {
6366
#if TARGET_OS_IOS
@@ -84,6 +87,9 @@ + (void) removeCOSXMLWithKey:(NSString*) key {
8487

8588
+ (QCloudCOSXMLService*) registerCOSXMLWithConfiguration:(QCloudServiceConfiguration*)configuration withKey:(NSString*)key;
8689
{
90+
if ([self hasServiceForKey:key]) {
91+
@throw [NSException exceptionWithName:QCloudErrorDomain reason:[NSString stringWithFormat:@"key: %@ COSXMLService已存在,如有新的配置,请通过 registerCOSXMLWithConfiguration:withKey:重新注册",key] userInfo:nil];
92+
}
8793
QCloudCOSXMLService* cosxmlService =[[QCloudCOSXMLService alloc] initWithConfiguration:configuration];
8894
[QCloudCOSXMLServiceCache() setObject:cosxmlService forKey:key];
8995
return cosxmlService;

0 commit comments

Comments
 (0)