Skip to content

Commit

Permalink
6.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
garenwang committed Jul 3, 2024
1 parent a8b58a3 commit 76bac70
Show file tree
Hide file tree
Showing 136 changed files with 9,331 additions and 58 deletions.
19 changes: 9 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# 6.4.0

1、修改getBucket接口漏洞
# 6.4.1
1、支持cos请求使用单临时秘钥。2、新增元数据接口。3、修复一直问题。

# 6.3.9
# 6.4.0
1、修改getBucket接口漏洞


# 6.3.9
1、高级上传接口支持callback。
2、优化上传contenttype参数。
3、修改WeakSelf为QCloudWeakSelf;
4、修复 其他已知问题。

4、修复 其他已知问题。


# 6.3.8

修复断点下载问题

修复断点下载问题

# 6.3.7

1.默认https协议。
2、提供httpdns全局开关。
3、修复6.3.5,6.3.6灯塔crash。
Expand Down
42 changes: 21 additions & 21 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
PODS:
- GMOpenSSL (2.2.9)
- QCloudCore (6.3.9):
- QCloudCore/Default (= 6.3.9)
- QCloudCore/Default (6.3.9):
- QCloudTrack/Beacon (= 6.3.9)
- QCloudCOSXML (6.3.9):
- QCloudCOSXML/Default (= 6.3.9)
- QCloudCOSXML/Default (6.3.9):
- QCloudCore (= 6.3.9)
- QCloudQuic (6.3.7):
- QCloudQuic/Default (= 6.3.7)
- QCloudQuic/Default (6.3.7)
- QCloudTrack (6.3.9):
- QCloudTrack/Default (= 6.3.9)
- QCloudTrack/Beacon (6.3.9)
- QCloudTrack/Cls (6.3.9):
- QCloudCore (6.4.1):
- QCloudCore/Default (= 6.4.1)
- QCloudCore/Default (6.4.1):
- QCloudTrack/Beacon (= 6.4.1)
- QCloudCOSXML (6.4.1):
- QCloudCOSXML/Default (= 6.4.1)
- QCloudCOSXML/Default (6.4.1):
- QCloudCore (= 6.4.1)
- QCloudQuic (6.3.9):
- QCloudQuic/Default (= 6.3.9)
- QCloudQuic/Default (6.3.9)
- QCloudTrack (6.4.1):
- QCloudTrack/Default (= 6.4.1)
- QCloudTrack/Beacon (6.4.1)
- QCloudTrack/Cls (6.4.1):
- TencentCloudLogProducer
- QCloudTrack/Default (6.3.9)
- QCloudTrack/Default (6.4.1)
- TencentCloudLogProducer (1.1.0):
- TencentCloudLogProducer/Core (= 1.1.0)
- TencentCloudLogProducer/Core (1.1.0):
Expand Down Expand Up @@ -47,12 +47,12 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
GMOpenSSL: d6d119ff8f00d4e03c2cdf733fb61e98e22da9c7
QCloudCore: aed46aa9cf2656373682d6aa3b0c3f252f1875f7
QCloudCOSXML: a8139aaa7db0c74c870a5a36ccccbee89d5cad75
QCloudQuic: 895ccf08046ecf068a6f965831dd16fc7d531fb4
QCloudTrack: 00557c28b5b1a2cd4a0cf2c41a34947d8a19d119
QCloudCore: 6252d05b183f45698550c5445de85826fd89f9a5
QCloudCOSXML: 48557a25a8803093a80951e65753a68275ff967d
QCloudQuic: 81e2c29fa8122c1d5e8323a90349683e52c8e101
QCloudTrack: 7458275adda5626dd2dc99367e3993080ab119c8
TencentCloudLogProducer: 4ccf2eb45c432180351564b1447b98d9b23ca37a

PODFILE CHECKSUM: 469848875513aa1180afa1e3751e2d873841a154

COCOAPODS: 1.12.1
COCOAPODS: 1.15.2
10 changes: 5 additions & 5 deletions QCloudCOSXML.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|
s.name = "QCloudCOSXML"


s.version = "6.4.0"
s.version = "6.4.1"


s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
Expand All @@ -20,22 +20,22 @@ s.version = "6.4.0"
s.default_subspec = 'Default'
s.subspec 'Default' do |default|
default.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
default.dependency "QCloudCore",'6.4.0'
default.dependency "QCloudCore",'6.4.1'
end
s.subspec 'Slim' do |slim|
slim.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
slim.dependency "QCloudCore/WithoutMTA",'6.4.0'
slim.dependency "QCloudCore/WithoutMTA",'6.4.1'
end
s.subspec 'Transfer' do |transfer|
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
transfer.dependency "QCloudCore/WithoutMTA",'6.4.0'
transfer.dependency "QCloudCore/WithoutMTA",'6.4.1'

end

s.subspec 'Widget' do |widget|
widget.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
widget.exclude_files = 'QCloudCOSXML/Classes/Base/QCloudLogManager.h','QCloudCOSXML/Classes/Base/QCloudLogManager.m'
widget.dependency "QCloudCore/WithoutMTA",'6.4.0'
widget.dependency "QCloudCore/WithoutMTA",'6.4.1'
end

end
1 change: 1 addition & 0 deletions QCloudCOSXML/Classes/Base/QCloudCOSXMLEndPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
// 是否切换到旧域名
// */
//@property (nonatomic, assign) BOOL enableOldDomain;
- (NSURL *)serverURLWithProductName:(NSString *)productName AppID:(NSString *)appID regionName:(NSString *)regionName;

@end

Expand Down
1 change: 1 addition & 0 deletions QCloudCOSXML/Classes/Base/QCloudCOSXMLEndPoint.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ - (NSURL *)serverURLWithBucket:(NSString *)bucket appID:(NSString *)appID region
QCloudLogDebug(@"serverURL: %@", serverURL);
return serverURL;
}

- (void)setIsPrefixURL:(BOOL)isPrefixURL {
_isPrefixURL = isPrefixURL;
}
Expand Down
51 changes: 51 additions & 0 deletions QCloudCOSXML/Classes/CI/QCloudCOSXMLService+ImageHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@
@class QCloudPostSoundHoundRequest;
@class QCloudVocalScoreRequest;
@class QCloudCIUploadOperationsRequest;
@class QCloudDescribeFileProcessQueuesRequest;
@class QCloudDescribeFileUnzipJobsRequest;
@class QCloudDescribeFileZipProcessJobsRequest;
@class QCloudCreateFileZipProcessJobsRequest;
@class QCloudCreateHashProcessJobsRequest;
@class QCloudDescribeHashProcessJobsRequest;
@class QCloudPostFileUnzipProcessJobRequest;
@class QCloudPostHashProcessJobsRequest;
@class QCloudUpdateFileProcessQueueRequest;
@class QCloudZipFilePreviewRequest;

NS_ASSUME_NONNULL_BEGIN

@interface QCloudCOSXMLService (ImageHelper)
Expand Down Expand Up @@ -495,6 +506,46 @@ COS 文档预览方法.
/// 提交一个音乐评分任务
-(void)VocalScore:(QCloudVocalScoreRequest *)request;

/// 查询文件处理队列
/// 本接口用于查询文件处理队列
-(void)DescribeFileProcessQueues:(QCloudDescribeFileProcessQueuesRequest *)request;

/// 查询文件解压结果
/// 本接口用于主动查询指定的文件解压任务结果
-(void)DescribeFileUnzipJobs:(QCloudDescribeFileUnzipJobsRequest *)request;

/// 查询多文件打包压缩结果
/// 本接口用于主动查询指定的多文件打包压缩任务结果
-(void)DescribeFileZipProcessJobs:(QCloudDescribeFileZipProcessJobsRequest *)request;

/// 提交多文件打包压缩任务
/// 多文件打包压缩功能可以将您的多个文件,打包为 zip 等压缩包格式,以提交任务的方式进行多文件打包压缩,异步返回打包后的文件,该接口属于 POST 请求
-(void)CreateFileZipProcessJobs:(QCloudCreateFileZipProcessJobsRequest *)request;

/// 哈希值计算同步请求
/// 以同步请求的方式进行文件哈希值计算,实时返回计算得到的哈希值,该接口属于 GET 请求
-(void)CreateHashProcessJobs:(QCloudCreateHashProcessJobsRequest *)request;

/// 查询哈希值计算结果
/// 本接口用于主动查询指定的文件哈希值计算任务结果
-(void)DescribeHashProcessJobs:(QCloudDescribeHashProcessJobsRequest *)request;

/// 提交文件解压任务
/// 以提交任务的方式进行压缩包文件的解压缩,异步返回压缩包内的全部或部分文件,该接口属于 POST 请求
-(void)PostFileUnzipProcessJob:(QCloudPostFileUnzipProcessJobRequest *)request;

/// 提交哈希值计算任务
/// 以提交任务的方式进行文件哈希值计算,异步返回计算得到的哈希值,该接口属于 POST 请求
-(void)PosthashProcessJobs:(QCloudPostHashProcessJobsRequest *)request;

/// 更新文件处理队列
/// 本接口用于更新文件处理的队列
-(void)UpdateFileProcessQueue:(QCloudUpdateFileProcessQueueRequest *)request;

/// 压缩包预览
/// 该接口可以在不解压文件的情况下预览压缩包内的内容,包含文件数量、名称、文件时间等,接口为同步请求方式
-(void)ZipFilePreview:(QCloudZipFilePreviewRequest *)request;



@end
Expand Down
76 changes: 76 additions & 0 deletions QCloudCOSXML/Classes/CI/QCloudCOSXMLService+ImageHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@
#import "QCloudPostSoundHoundRequest.h"
#import "QCloudVocalScoreRequest.h"
#import "QCloudCIUploadOperationsRequest.h"
#import "QCloudDescribeFileProcessQueuesRequest.h"
#import "QCloudDescribeFileUnzipJobsRequest.h"
#import "QCloudDescribeFileZipProcessJobsRequest.h"
#import "QCloudCreateFileZipProcessJobsRequest.h"
#import "QCloudCreateHashProcessJobsRequest.h"
#import "QCloudDescribeHashProcessJobsRequest.h"
#import "QCloudPostFileUnzipProcessJobRequest.h"
#import "QCloudPostHashProcessJobsRequest.h"
#import "QCloudUpdateFileProcessQueueRequest.h"
#import "QCloudZipFilePreviewRequest.h"


@implementation QCloudCOSXMLService (ImageHelper)

Expand Down Expand Up @@ -287,7 +298,31 @@ -(void)buildRequestUrl:(QCloudBizHTTPRequest *)request{
[request onError:error];
return;
}

__block NSString *requestURLString = urlRequest.URL.absoluteString;

if (request.credential) {
QCloudAuthentationV5Creator *creator = [[QCloudAuthentationV5Creator alloc] initWithCredential:request.credential];
QCloudSignature *signature = [creator signatureForData:(NSMutableURLRequest *)urlRequest];
NSString *authorizatioinString = signature.signature;
if ([requestURLString hasSuffix:@"&"] || [requestURLString hasSuffix:@"?"]) {
requestURLString = [requestURLString stringByAppendingString:authorizatioinString];
} else if([requestURLString containsString:@"?"] && ![requestURLString hasSuffix:@"&"]){
requestURLString = [requestURLString stringByAppendingFormat:@"&%@", authorizatioinString];
}else {
requestURLString = [requestURLString stringByAppendingFormat:@"?%@", authorizatioinString];
}
if (signature.token) {
requestURLString =
[requestURLString stringByAppendingFormat:@"&x-cos-security-token=%@", signature.token];
}

if (request.finishBlock) {
request.finishBlock(requestURLString, nil);
}
return;
}

[request.signatureProvider signatureWithFields:request.signatureFields
request:request
urlRequest:(NSMutableURLRequest *)urlRequest
Expand Down Expand Up @@ -582,4 +617,45 @@ - (void)UploadOperations:(QCloudCIUploadOperationsRequest *)request{

}

-(void)DescribeFileProcessQueues:(QCloudDescribeFileProcessQueuesRequest *)request{
[super performRequest:(QCloudDescribeFileProcessQueuesRequest *)request];
}

-(void)DescribeFileUnzipJobs:(QCloudDescribeFileUnzipJobsRequest *)request{
[super performRequest:(QCloudDescribeFileUnzipJobsRequest *)request];
}

-(void)DescribeFileZipProcessJobs:(QCloudDescribeFileZipProcessJobsRequest *)request{
[super performRequest:(QCloudDescribeFileZipProcessJobsRequest *)request];
}

-(void)CreateFileZipProcessJobs:(QCloudCreateFileZipProcessJobsRequest *)request{
[super performRequest:(QCloudCreateFileZipProcessJobsRequest *)request];
}

-(void)CreateHashProcessJobs:(QCloudCreateHashProcessJobsRequest *)request{
[super performRequest:(QCloudCreateHashProcessJobsRequest *)request];
}

-(void)DescribeHashProcessJobs:(QCloudDescribeHashProcessJobsRequest *)request{
[super performRequest:(QCloudDescribeHashProcessJobsRequest *)request];
}

-(void)PostFileUnzipProcessJob:(QCloudPostFileUnzipProcessJobRequest *)request{
[super performRequest:(QCloudPostFileUnzipProcessJobRequest *)request];
}

-(void)PosthashProcessJobs:(QCloudPostHashProcessJobsRequest *)request{
[super performRequest:(QCloudPostHashProcessJobsRequest *)request];
}

-(void)UpdateFileProcessQueue:(QCloudUpdateFileProcessQueueRequest *)request{
[super performRequest:(QCloudUpdateFileProcessQueueRequest *)request];
}

-(void)ZipFilePreview:(QCloudZipFilePreviewRequest *)request{
[super performRequest:(QCloudZipFilePreviewRequest *)request];
}


@end
Loading

0 comments on commit 76bac70

Please sign in to comment.