Commit bef7a0958ec2b0ac906daf508241041cb6b5b2ec

Authored by yanglingyu
1 parent a2208125

网络请求处理

CNLiveScioLive/Pages/Header/UrlMacro.h
... ... @@ -9,8 +9,8 @@
9 9 #ifndef UrlMacro_h
10 10 #define UrlMacro_h
11 11  
12   -#define REQUESTURL(url) [@"http://test.app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url] //测试环境
13   -//#define REQUESTURL(url) [@"http://app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url] //正式环境
  12 +//#define REQUESTURL(url) [@"http://test.app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url] //测试环境
  13 +#define REQUESTURL(url) [@"http://app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url] //正式环境
14 14  
15 15 #define IS_STRING_EMPTY(string) (string==nil || string == NULL || [string isKindOfClass:[NSNull class]] || [[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0 || [string isEqualToString:@""] || [string isEqualToString:@"<null>"])
16 16  
... ...
CNLiveScioLive/Pages/Home/高级搜索/Controller/SearchResultViewController.m
... ... @@ -318,7 +318,7 @@
318 318 NSArray *programs = dic[@"programs"];
319 319 if (programs.count == 0) {
320 320  
321   - [self.tableView.mj_footer noticeNoMoreData];
  321 + [self.tableView.mj_footer endRefreshingWithNoMoreData];
322 322 }else {
323 323  
324 324 [self.dataArray addObjectsFromArray:programs];
... ...
CNLiveScioLive/Pages/Home/高级搜索/Controller/SelectedViewController.m
... ... @@ -70,7 +70,7 @@
70 70  
71 71 - (void)getList {
72 72  
73   - NSString *strUrl = [NSString stringWithFormat:@"%@%@",REQUESTURL(@"gxb/api/"),self.url];
  73 + NSString *strUrl = [NSString stringWithFormat:@"%@/%@",REQUESTURL(@"gxb/api"),self.url];
74 74 NSMutableDictionary *param = [NSMutableDictionary dictionary];
75 75 [param setObject:@"i" forKey:@"plat"];
76 76 [param setObject:@"5.0" forKey:@"version"];
... ...