...
|
...
|
@@ -202,7 +202,7 @@ |
|
|
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
|
|
|
manager.responseSerializer.acceptableContentTypes = [manager.responseSerializer.acceptableContentTypes setByAddingObject:@"text/html"];
|
|
|
NSURLSessionDataTask *task= [manager
|
|
|
GET:[NSString stringWithFormat:@"%@,%@", API_BASE_URL_STRING, @"qcloud/getPushFlow"]
|
|
|
GET:[NSString stringWithFormat:@"%@%@", API_BASE_URL_STRING, @"qcloud/getPushFlow"]
|
|
|
parameters:nil progress:NULL
|
|
|
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
|
|
if ([responseObject isKindOfClass:[NSDictionary class]]) {
|
...
|
...
|
@@ -533,7 +533,7 @@ |
|
|
NSString *md5 = [self md5:temp];
|
|
|
|
|
|
NSURLSessionDataTask *task = [manager
|
|
|
GET:[NSString stringWithFormat:@"%@,%@",API_BASE_URL_STRING,@"qcloud/closeLive"]
|
|
|
GET:[NSString stringWithFormat:@"%@%@",API_BASE_URL_STRING,@"qcloud/closeLive"]
|
|
|
parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5}
|
|
|
progress:NULL
|
|
|
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
...
|
...
|
@@ -681,7 +681,7 @@ |
|
|
NSString *temp=[NSString stringWithFormat:@"%@yohocms",_currentChannel.room?:@"0"];
|
|
|
NSString *md5 = [self md5:temp];
|
|
|
NSURLSessionDataTask *task = [manager
|
|
|
GET:[NSString stringWithFormat:@"%@,%@",API_BASE_URL_STRING,@"qcloud/startLive"]
|
|
|
GET:[NSString stringWithFormat:@"%@%@",API_BASE_URL_STRING,@"qcloud/startLive"]
|
|
|
parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5}
|
|
|
progress:NULL
|
|
|
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
...
|
...
|
|