Authored by 盖剑秋

Fix url bug.

@@ -202,7 +202,7 @@ @@ -202,7 +202,7 @@
202 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; 202 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
203 manager.responseSerializer.acceptableContentTypes = [manager.responseSerializer.acceptableContentTypes setByAddingObject:@"text/html"]; 203 manager.responseSerializer.acceptableContentTypes = [manager.responseSerializer.acceptableContentTypes setByAddingObject:@"text/html"];
204 NSURLSessionDataTask *task= [manager 204 NSURLSessionDataTask *task= [manager
205 - GET:[NSString stringWithFormat:@"%@,%@", API_BASE_URL_STRING, @"qcloud/getPushFlow"] 205 + GET:[NSString stringWithFormat:@"%@%@", API_BASE_URL_STRING, @"qcloud/getPushFlow"]
206 parameters:nil progress:NULL 206 parameters:nil progress:NULL
207 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { 207 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
208 if ([responseObject isKindOfClass:[NSDictionary class]]) { 208 if ([responseObject isKindOfClass:[NSDictionary class]]) {
@@ -533,7 +533,7 @@ @@ -533,7 +533,7 @@
533 NSString *md5 = [self md5:temp]; 533 NSString *md5 = [self md5:temp];
534 534
535 NSURLSessionDataTask *task = [manager 535 NSURLSessionDataTask *task = [manager
536 - GET:[NSString stringWithFormat:@"%@,%@",API_BASE_URL_STRING,@"qcloud/closeLive"] 536 + GET:[NSString stringWithFormat:@"%@%@",API_BASE_URL_STRING,@"qcloud/closeLive"]
537 parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5} 537 parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5}
538 progress:NULL 538 progress:NULL
539 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { 539 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
@@ -681,7 +681,7 @@ @@ -681,7 +681,7 @@
681 NSString *temp=[NSString stringWithFormat:@"%@yohocms",_currentChannel.room?:@"0"]; 681 NSString *temp=[NSString stringWithFormat:@"%@yohocms",_currentChannel.room?:@"0"];
682 NSString *md5 = [self md5:temp]; 682 NSString *md5 = [self md5:temp];
683 NSURLSessionDataTask *task = [manager 683 NSURLSessionDataTask *task = [manager
684 - GET:[NSString stringWithFormat:@"%@,%@",API_BASE_URL_STRING,@"qcloud/startLive"] 684 + GET:[NSString stringWithFormat:@"%@%@",API_BASE_URL_STRING,@"qcloud/startLive"]
685 parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5} 685 parameters:@{@"cid":_currentChannel.room?:@"0",@"secret":md5}
686 progress:NULL 686 progress:NULL
687 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { 687 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
@@ -35,12 +35,12 @@ @@ -35,12 +35,12 @@
35 35
36 #ifdef DEBUGTEST 36 #ifdef DEBUGTEST
37 37
38 -#define API_BASE_URL_STRING @"http://newboys.test.yoho.cn/yohoboyins/v4"//正式环境 38 +#define API_BASE_URL_STRING @"http://newboys.test.yoho.cn/yohoboyins/v4/"//正式环境
39 #define API_h5ezine_URL_STRING @"http://h5api.myoho.net/index.php" 39 #define API_h5ezine_URL_STRING @"http://h5api.myoho.net/index.php"
40 40
41 #else 41 #else
42 42
43 -#define API_BASE_URL_STRING @"http://new.yohoboys.com/yohoboyins/v4"//正式环境 43 +#define API_BASE_URL_STRING @"http://new.yohoboys.com/yohoboyins/v4/"//正式环境
44 #define API_h5ezine_URL_STRING @"http://h5api.myoho.net/index.php" 44 #define API_h5ezine_URL_STRING @"http://h5api.myoho.net/index.php"
45 45
46 #endif 46 #endif