Commit bef7a0958ec2b0ac906daf508241041cb6b5b2ec
1 parent
a2208125
网络请求处理
Showing
3 changed files
with
4 additions
and
4 deletions
CNLiveScioLive/Pages/Header/UrlMacro.h
| @@ -9,8 +9,8 @@ | @@ -9,8 +9,8 @@ | ||
| 9 | #ifndef UrlMacro_h | 9 | #ifndef UrlMacro_h |
| 10 | #define UrlMacro_h | 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 | #define IS_STRING_EMPTY(string) (string==nil || string == NULL || [string isKindOfClass:[NSNull class]] || [[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0 || [string isEqualToString:@""] || [string isEqualToString:@"<null>"]) | 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,7 +318,7 @@ | ||
| 318 | NSArray *programs = dic[@"programs"]; | 318 | NSArray *programs = dic[@"programs"]; |
| 319 | if (programs.count == 0) { | 319 | if (programs.count == 0) { |
| 320 | 320 | ||
| 321 | - [self.tableView.mj_footer noticeNoMoreData]; | 321 | + [self.tableView.mj_footer endRefreshingWithNoMoreData]; |
| 322 | }else { | 322 | }else { |
| 323 | 323 | ||
| 324 | [self.dataArray addObjectsFromArray:programs]; | 324 | [self.dataArray addObjectsFromArray:programs]; |
CNLiveScioLive/Pages/Home/高级搜索/Controller/SelectedViewController.m
| @@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
| 70 | 70 | ||
| 71 | - (void)getList { | 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 | NSMutableDictionary *param = [NSMutableDictionary dictionary]; | 74 | NSMutableDictionary *param = [NSMutableDictionary dictionary]; |
| 75 | [param setObject:@"i" forKey:@"plat"]; | 75 | [param setObject:@"i" forKey:@"plat"]; |
| 76 | [param setObject:@"5.0" forKey:@"version"]; | 76 | [param setObject:@"5.0" forKey:@"version"]; |