Authored by 盖剑秋

Fix url bug.

... ... @@ -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) {
... ...
... ... @@ -35,12 +35,12 @@
#ifdef DEBUGTEST
#define API_BASE_URL_STRING @"http://newboys.test.yoho.cn/yohoboyins/v4"//正式环境
#define API_BASE_URL_STRING @"http://newboys.test.yoho.cn/yohoboyins/v4/"//正式环境
#define API_h5ezine_URL_STRING @"http://h5api.myoho.net/index.php"
#else
#define API_BASE_URL_STRING @"http://new.yohoboys.com/yohoboyins/v4"//正式环境
#define API_BASE_URL_STRING @"http://new.yohoboys.com/yohoboyins/v4/"//正式环境
#define API_h5ezine_URL_STRING @"http://h5api.myoho.net/index.php"
#endif
... ...