...
|
...
|
@@ -109,6 +109,9 @@ |
|
|
|
|
|
@end
|
|
|
|
|
|
#define Envir_Test @"http://newboys.test.yoho.cn/"
|
|
|
#define Envir_Release @"http://new.yohoboys.com/" //正式环境
|
|
|
|
|
|
@implementation YH_RootViewController
|
|
|
|
|
|
- (void)liveNotifyEndSuccess {
|
...
|
...
|
@@ -204,7 +207,7 @@ |
|
|
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
|
|
|
manager.responseSerializer.acceptableContentTypes = [manager.responseSerializer.acceptableContentTypes setByAddingObject:@"text/html"];
|
|
|
NSURLSessionDataTask *task= [manager
|
|
|
GET:@"http://new.yohoboys.com/yohoboyins/v4/qcloud/getPushFlow"
|
|
|
GET:[NSString stringWithFormat:@"%@,%@",Envir_Release,@"yohoboyins/v4/qcloud/getPushFlow"]
|
|
|
parameters:nil progress:NULL
|
|
|
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
|
|
if ([responseObject isKindOfClass:[NSDictionary class]]) {
|
...
|
...
|
@@ -535,7 +538,7 @@ |
|
|
NSString *md5 = [self md5:temp];
|
|
|
|
|
|
NSURLSessionDataTask *task = [manager
|
|
|
GET:@"http://new.yohoboys.com/yohoboyins/v4/qcloud/closeLive"
|
|
|
GET:[NSString stringWithFormat:@"%@,%@",Envir_Release,@"yohoboyins/v4/qcloud/closeLive"]
|
|
|
parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5}
|
|
|
progress:NULL
|
|
|
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
...
|
...
|
@@ -683,7 +686,7 @@ |
|
|
NSString *temp=[NSString stringWithFormat:@"%@yohocms",_currentChannel.room?:@"0"];
|
|
|
NSString *md5 = [self md5:temp];
|
|
|
NSURLSessionDataTask *task = [manager
|
|
|
GET:@"http://new.yohoboys.com/yohoboyins/v4/qcloud/startLive"
|
|
|
GET:[NSString stringWithFormat:@"%@,%@",Envir_Release,@"yohoboyins/v4/qcloud/startLive"]
|
|
|
parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5}
|
|
|
progress:NULL
|
|
|
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
|
...
|
...
|
|