Skip to content

Commit

Permalink
# 6.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
garenwang committed Feb 10, 2023
1 parent d6a8570 commit 5116b9d
Show file tree
Hide file tree
Showing 19 changed files with 82 additions and 182 deletions.
47 changes: 29 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
# 6.1.8
1.新增 Bucket policy接口
# 6.1.9

# 6.1.7

# 6.1.8


# 6.1.7
1.修复断点下载进度bug

# 6.1.6

# 6.1.6
1.新增图片修复、人脸识别、人体识别、文字识别等十余个接口
# 6.1.5

# 6.1.5
1.新增急速识别相关参数
补充急速识别相关参数

# 6.1.4
1.新增分词相关接口
# 6.1.4

# 6.1.3
新增分词接口

# 6.1.3
1.新增语音识别相关接口


# 6.1.2
1.request新增payload参数。 2.修复已知bug

# 6.1.2
1.request新增payload参数。 2.修复已知bug"

# 6.1.1
1.修改头文件大小写问题
# 6.1.1

# 6.1.0
1.优化service注册校验逻辑。2.修复全部取消。
修改头文件大小写问题

# 6.1.0

# 6.0.9
1.优化service注册校验逻辑。2.修复全部取消。

# 6.0.9

1.新增内容审核接口

# 6.0.8

1.修改sdk与yymodel 方法命名冲突。2.修改一些SDK 内部一些警告
Expand Down
8 changes: 4 additions & 4 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.1.8"
s.version = "6.1.9"


s.summary = "QCloudCOSXML 腾讯云iOS-SDK组件"
Expand All @@ -22,15 +22,15 @@ s.version = "6.1.8"
s.subspec 'Default' do |default|
default.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'

default.dependency "QCloudCore",'6.1.8'
default.dependency "QCloudCore",'6.1.9'
end
s.subspec 'Slim' do |slim|
slim.source_files = 'QCloudCOSXML/Classes/**/*','QCloudCOSXML/Classes/QCloudCOSXML/*'
slim.dependency "QCloudCore/WithoutMTA",'6.1.8'
slim.dependency "QCloudCore/WithoutMTA",'6.1.9'
end
s.subspec 'Transfer' do |transfer|
transfer.source_files = 'QCloudCOSXML/Classes/*','QCloudCOSXML/Classes/Transfer/**/*','QCloudCOSXML/Classes/Base/**/*'
transfer.dependency "QCloudCore/WithoutMTA",'6.1.8'
transfer.dependency "QCloudCore/WithoutMTA",'6.1.9'

end

Expand Down
2 changes: 2 additions & 0 deletions QCloudCOSXML/Classes/CI/enum/QCloudRecognitionEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ typedef NS_ENUM(NSUInteger, QCloudRecognitionEnum) {
QCloudRecognitionTerrorist = 1 << 1,
QCloudRecognitionPolitics = 1 << 2,
QCloudRecognitionAds = 1 << 3,
QCloudRecognitionIllegal = 1 << 4,
QCloudRecognitionAbuse = 1 << 5,
};

//拉取该状态的任务,以,分割,支持多状态:All、Submitted、Running、Success、Failed、Pause、Cancel。默认为 All。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
}
}

if (self.detectType == 0 ) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString stringWithFormat:
@"InvalidArgument:paramter[detectType] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

NSURL *__serverURL = [self.runOnService.configuration.endpoint serverURLWithBucket:self.bucket
appID:self.runOnService.configuration.appID
regionName:self.regionName];
Expand All @@ -113,18 +103,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {

self.requestData.serverURL = __serverURL.absoluteString;
[self.requestData setValue:__serverURL.host forHTTPHeaderField:@"Host"];


if ([self getDetectType].length == 0) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString
stringWithFormat:
@"InvalidArgument:paramter[detect-type] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

NSDictionary * params =@{
@"Input":[self.input qcloud_modelToJSONObject],
Expand Down Expand Up @@ -170,7 +148,9 @@ - (NSString *)getDetectType {
if (_detectType & QCloudRecognitionAds) {
[detecyTypes addObject:@"Ads"];
}

if(detecyTypes.count == 0){
return @"";
}
return [detecyTypes componentsJoinedByString:@","];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,7 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
return NO;
}
}

if (self.detectType == 0 ) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString stringWithFormat:
@"InvalidArgument:paramter[detectType] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}


NSURL *__serverURL = [self.runOnService.configuration.endpoint serverURLWithBucket:self.bucket
appID:self.runOnService.configuration.appID
regionName:self.regionName];
Expand All @@ -111,18 +101,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
self.requestData.serverURL = __serverURL.absoluteString;
[self.requestData setValue:__serverURL.host forHTTPHeaderField:@"Host"];


if ([self getDetectType].length == 0) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString
stringWithFormat:
@"InvalidArgument:paramter[detect-type] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

NSMutableDictionary * input = NSMutableDictionary.new;
if (self.object) {
[input setObject:self.object forKey:@"Object"];
Expand Down Expand Up @@ -178,6 +156,10 @@ - (NSString *)getDetectType {
if (_detectType & QCloudRecognitionAds) {
[detecyTypes addObject:@"Ads"];
}

if(detecyTypes.count == 0){
return @"";
}

return [detecyTypes componentsJoinedByString:@","];
}
Expand Down
27 changes: 4 additions & 23 deletions QCloudCOSXML/Classes/CI/request/QCloudPostDocRecognitionRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
}
}

if (self.detectType == 0 ) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString stringWithFormat:
@"InvalidArgument:paramter[detectType] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

NSURL *__serverURL = [self.runOnService.configuration.endpoint serverURLWithBucket:self.bucket
appID:self.runOnService.configuration.appID
regionName:self.regionName];
Expand All @@ -112,19 +102,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
self.requestData.serverURL = __serverURL.absoluteString;
[self.requestData setValue:__serverURL.host forHTTPHeaderField:@"Host"];


if ([self getDetectType].length == 0) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString
stringWithFormat:
@"InvalidArgument:paramter[detect-type] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}


NSMutableDictionary * input = NSMutableDictionary.new;
if (self.object) {
[input setObject:self.object forKey:@"Object"];
Expand Down Expand Up @@ -182,6 +159,10 @@ - (NSString *)getDetectType {
if (_detectType & QCloudRecognitionAds) {
[detecyTypes addObject:@"Ads"];
}

if(detecyTypes.count == 0){
return @"";
}

return [detecyTypes componentsJoinedByString:@","];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
功能描述:
本接口用于提交一个视频审核任务。视频审核功能为异步任务方式,您可以通过提交视频审核任务审核您的视频文件,然后通过查询视频审核任务接口查询审核结果
本接口用于提交一个文本审核任务。视频审核功能为异步任务方式,您可以通过提交文本审核任务审核您的视频文件,然后通过查询文本审核任务接口查询审核结果
具体请查看:https://cloud.tencent.com/document/product/460/56285
Expand Down
35 changes: 12 additions & 23 deletions QCloudCOSXML/Classes/CI/request/QCloudPostTextRecognitionRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
}
}

if (self.detectType == 0 ) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString stringWithFormat:
@"InvalidArgument:paramter[detectType] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

NSURL *__serverURL = [self.runOnService.configuration.endpoint serverURLWithBucket:self.bucket
appID:self.runOnService.configuration.appID
regionName:self.regionName];
Expand All @@ -110,19 +100,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {

self.requestData.serverURL = __serverURL.absoluteString;
[self.requestData setValue:__serverURL.host forHTTPHeaderField:@"Host"];


if ([self getDetectType].length == 0) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString
stringWithFormat:
@"InvalidArgument:paramter[detect-type] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}


NSMutableDictionary * input = NSMutableDictionary.new;
if (self.object) {
Expand Down Expand Up @@ -186,6 +163,18 @@ - (NSString *)getDetectType {
[detecyTypes addObject:@"Ads"];
}

if (_detectType & QCloudRecognitionIllegal) {
[detecyTypes addObject:@"Illegal"];
}

if (_detectType & QCloudRecognitionAbuse) {
[detecyTypes addObject:@"Abuse"];
}

if(detecyTypes.count == 0){
return @"";
}

return [detecyTypes componentsJoinedByString:@","];
}
@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {
}
}

if (self.detectType == 0 ) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString stringWithFormat:
@"InvalidArgument:paramter[detectType] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

if (self.mode == 0 ) {
if (error != NULL) {
*error = [NSError
Expand Down Expand Up @@ -141,19 +131,6 @@ - (BOOL)buildRequestData:(NSError *__autoreleasing *)error {

self.requestData.serverURL = __serverURL.absoluteString;
[self.requestData setValue:__serverURL.host forHTTPHeaderField:@"Host"];


if ([self getDetectType].length == 0) {
if (error != NULL) {
*error = [NSError
qcloud_errorWithCode:QCloudNetworkErrorCodeParamterInvalid
message:[NSString
stringWithFormat:
@"InvalidArgument:paramter[detect-type] is invalid (nil), it must have some value. please check it"]];
return NO;
}
}

NSDictionary * input = self.object ? @{@"Object":self.object} : @{@"Url":self.url?:@""};
if (self.dataId) {
NSMutableDictionary * minput = input.mutableCopy;
Expand Down Expand Up @@ -213,6 +190,10 @@ - (NSString *)getDetectType {
if (_detectType & QCloudRecognitionAds) {
[detecyTypes addObject:@"Ads"];
}

if(detecyTypes.count == 0){
return @"";
}

return [detecyTypes componentsJoinedByString:@","];
}
Expand Down

0 comments on commit 5116b9d

Please sign in to comment.