Commit 05c8ca3dea85d27aee965258b06c342272abf6f2

Authored by yanglingyu
1 parent 3afdb34e

列表标签,标题文字加红

Showing 25 changed files with 84 additions and 210 deletions
CNLiveScioLive/AppDelegate.m
@@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@
97 #pragma mark - 请求启动页 97 #pragma mark - 请求启动页
98 -(void)requestLanchImage 98 -(void)requestLanchImage
99 { 99 {
100 - NSString *urlStr = @"http://app.phonemovie.cnlive.com/gxb/openBanner"; 100 + NSString *urlStr = REQUESTURL(@"gxb/openBanner");
101 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"852cde69-ecd8-11e6-b52e-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"}; 101 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"852cde69-ecd8-11e6-b52e-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"};
102 [XWHTTPTool GET:urlStr params:parameters success:^(id json) { 102 [XWHTTPTool GET:urlStr params:parameters success:^(id json) {
103 NSDictionary *dic = [NSDictionary dictionaryWithDictionary:json]; 103 NSDictionary *dic = [NSDictionary dictionaryWithDictionary:json];
@@ -291,7 +291,7 @@ @@ -291,7 +291,7 @@
291 return; 291 return;
292 } 292 }
293 293
294 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/programByContentId"; 294 + NSString *strUrl = REQUESTURL(@"gxb/api/programByContentId");
295 295
296 NSString *parameter = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"38_iuvkou3xi05\",\"cmsContentId\":\"%@\"}",idStr]; 296 NSString *parameter = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"38_iuvkou3xi05\",\"cmsContentId\":\"%@\"}",idStr];
297 NSDictionary *parameters = @{@"params":parameter}; 297 NSDictionary *parameters = @{@"params":parameter};
CNLiveScioLive/Pages/Header/UrlMacro.h
@@ -9,6 +9,12 @@ @@ -9,6 +9,12 @@
9 #ifndef UrlMacro_h 9 #ifndef UrlMacro_h
10 #define UrlMacro_h 10 #define UrlMacro_h
11 11
  12 +#ifdef DEBUG
  13 +#define REQUESTURL(url) [@"http://test.app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url]
  14 +#else
  15 +#define REQUESTURL(url) [@"http://app.phonemovie.cnlive.com/" stringByAppendingPathComponent:url]
  16 +#endif
  17 +
12 #define IS_STRING_EMPTY(string) (string==nil || string == NULL || [string isKindOfClass:[NSNull class]] || [[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0 || [string isEqualToString:@""] || [string isEqualToString:@"<null>"]) 18 #define IS_STRING_EMPTY(string) (string==nil || string == NULL || [string isKindOfClass:[NSNull class]] || [[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0 || [string isEqualToString:@""] || [string isEqualToString:@"<null>"])
13 19
14 #define LOCARRAYLIST_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"LocArrayList.db"] 20 #define LOCARRAYLIST_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"LocArrayList.db"]
@@ -25,7 +31,7 @@ @@ -25,7 +31,7 @@
25 #define SQLITE_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"notice.sqldb"] 31 #define SQLITE_PATH [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"notice.sqldb"]
26 32
27 #define SEARCH_HISTORY @"searchHistory.txt" 33 #define SEARCH_HISTORY @"searchHistory.txt"
28 -#define searchApi @"http://app.phonemovie.cnlive.com/gxb/api/programList" 34 +#define searchApi REQUESTURL(@"gxb/api/programList")
29 35
30 36
31 #define IKEY @"0" 37 #define IKEY @"0"
@@ -45,7 +51,7 @@ @@ -45,7 +51,7 @@
45 //#define tuwen(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id] 51 //#define tuwen(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id]
46 #define tuwen(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id] 52 #define tuwen(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id]
47 53
48 -#define FORECAST @"http://app.phonemovie.cnlive.com/gxb/api/" 54 +#define FORECAST REQUESTURL(@"gxb/api/")
49 #define yugaoliebiao @"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=DocList&ChannelID=20490" 55 #define yugaoliebiao @"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx?type=DocList&ChannelID=20490"
50 //#define newsdetail(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id] 56 //#define newsdetail(id) [NSString stringWithFormat:@"http://www.scio.gov.cn:9095/video/JsonDataFromGXW.aspx/JsonDataFromGXW.aspx?type=Doc&DocID=%d",id]
51 57
CNLiveScioLive/Pages/Home/CNHomeBaseViewController.m
@@ -31,7 +31,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -31,7 +31,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
31 31
32 #pragma mark - Data 32 #pragma mark - Data
33 - (void)loadData{ 33 - (void)loadData{
34 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 34 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
35 //NSLog(@"%@",strUrl); 35 //NSLog(@"%@",strUrl);
36 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",self.cid,(long)self.pageNo]; 36 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",self.cid,(long)self.pageNo];
37 //NSLog(@"%@",categoryId); 37 //NSLog(@"%@",categoryId);
@@ -176,30 +176,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -176,30 +176,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
176 return cell; 176 return cell;
177 177
178 } 178 }
179 - else if([model.showType isEqualToString:@"1"]){  
180 - if(model.img && ![model.img isEqualToString:@""]){  
181 - //一张图 左边  
182 - CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
183 - if (!cell) {  
184 - cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
185 - }  
186 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
187 - cell.model = self.data[indexPath.row];  
188 - return cell;  
189 - }  
190 - //无图  
191 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
192 - if (!cell) {  
193 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
194 - }  
195 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
196 -// if (!cell) {  
197 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
198 -// }  
199 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
200 - cell.model = self.data[indexPath.row];  
201 - return cell;  
202 - }  
203 else if([model.showType isEqualToString:@"2"]){ 179 else if([model.showType isEqualToString:@"2"]){
204 //三张图 180 //三张图
205 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell]; 181 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell];
@@ -211,7 +187,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -211,7 +187,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
211 return cell; 187 return cell;
212 188
213 } 189 }
214 - else if([model.showType isEqualToString:@"3"]){ 190 + else {
215 if(model.img){ 191 if(model.img){
216 //一张图 左边 192 //一张图 左边
217 CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell]; 193 CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];
@@ -234,21 +210,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -234,21 +210,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
234 cell.selectionStyle = UITableViewCellSelectionStyleNone; 210 cell.selectionStyle = UITableViewCellSelectionStyleNone;
235 cell.model = self.data[indexPath.row]; 211 cell.model = self.data[indexPath.row];
236 return cell; 212 return cell;
237 -  
238 - }else{  
239 - //无图  
240 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
241 - if (!cell) {  
242 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
243 - }  
244 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
245 -// if (!cell) {  
246 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
247 -// }  
248 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
249 - cell.model = self.data[indexPath.row];  
250 - return cell;  
251 -  
252 } 213 }
253 214
254 } 215 }
CNLiveScioLive/Pages/Home/CNHomeENViewController.m
@@ -34,7 +34,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -34,7 +34,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
34 34
35 #pragma mark - Data 35 #pragma mark - Data
36 - (void)loadData{ 36 - (void)loadData{
37 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 37 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
38 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"38_ivkou3xi05\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",@"wz/scio/",(long)self.pageNo]; 38 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"38_ivkou3xi05\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",@"wz/scio/",(long)self.pageNo];
39 39
40 NSDictionary *parameters = @{@"params":categoryId}; 40 NSDictionary *parameters = @{@"params":categoryId};
@@ -215,30 +215,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -215,30 +215,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
215 return cell; 215 return cell;
216 216
217 } 217 }
218 - else if([model.showType isEqualToString:@"1"]){  
219 - if(model.img && ![model.img isEqualToString:@""]){  
220 - //一张图 左边  
221 - CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
222 - if (!cell) {  
223 - cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
224 - }  
225 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
226 - cell.model = self.data[indexPath.row];  
227 - return cell;  
228 - }  
229 - //无图  
230 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
231 - if (!cell) {  
232 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
233 - }  
234 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
235 -// if (!cell) {  
236 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
237 -// }  
238 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
239 - cell.model = self.data[indexPath.row];  
240 - return cell;  
241 - }  
242 else if([model.showType isEqualToString:@"2"]){ 218 else if([model.showType isEqualToString:@"2"]){
243 //三张图 219 //三张图
244 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell]; 220 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell];
@@ -250,7 +226,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -250,7 +226,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
250 return cell; 226 return cell;
251 227
252 } 228 }
253 - else if([model.showType isEqualToString:@"3"]){ 229 + else{
254 if(model.img){ 230 if(model.img){
255 //一张图 左边 231 //一张图 左边
256 CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell]; 232 CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];
@@ -274,22 +250,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -274,22 +250,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
274 cell.model = self.data[indexPath.row]; 250 cell.model = self.data[indexPath.row];
275 return cell; 251 return cell;
276 252
277 - }else{  
278 - //无图  
279 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
280 - if (!cell) {  
281 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
282 - }  
283 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
284 -// if (!cell) {  
285 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
286 -// }  
287 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
288 - cell.model = self.data[indexPath.row];  
289 - return cell;  
290 -  
291 } 253 }
292 -  
293 } 254 }
294 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 255 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
295 CNHomeModel *model = self.data[indexPath.row]; 256 CNHomeModel *model = self.data[indexPath.row];
CNLiveScioLive/Pages/Home/CNHomeModel.h
@@ -13,6 +13,8 @@ @@ -13,6 +13,8 @@
13 @property (nonatomic, copy) NSString *title; 13 @property (nonatomic, copy) NSString *title;
14 @property (nonatomic, copy) NSString *uuid; 14 @property (nonatomic, copy) NSString *uuid;
15 @property (nonatomic, copy) NSString *subTitle; 15 @property (nonatomic, copy) NSString *subTitle;
  16 +@property (nonatomic, copy) NSString *titleColor;
  17 +@property (nonatomic, copy) NSString *tagsColor;
16 18
17 19
18 @property (nonatomic, copy) NSString *ID; 20 @property (nonatomic, copy) NSString *ID;
CNLiveScioLive/Pages/Home/CNHomeViewController.m
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 @implementation CNHomeViewController 24 @implementation CNHomeViewController
25 #pragma mark - Data 25 #pragma mark - Data
26 - (void)getData{ 26 - (void)getData{
27 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/page"; 27 + NSString *strUrl = REQUESTURL(@"gxb/api/page");
28 28
29 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"852cde69-ecd8-11e6-b52e-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"}; 29 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"852cde69-ecd8-11e6-b52e-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"};
30 if (![[Reachability reachabilityForInternetConnection] currentReachabilityStatus]) { 30 if (![[Reachability reachabilityForInternetConnection] currentReachabilityStatus]) {
@@ -93,9 +93,9 @@ @@ -93,9 +93,9 @@
93 } 93 }
94 if(controllers.count > 0){ 94 if(controllers.count > 0){
95 self.segmentControl.titles = titles; 95 self.segmentControl.titles = titles;
96 - if (ininav[@"textColor"]) {  
97 - self.segmentControl.titleSelectColor = [UIColor colorWithHexString:ininav[@"textColor"]];  
98 - [self.segmentControl setBottomViewColor:[UIColor colorWithHexString:ininav[@"textColor"]]]; 96 + if (ininavArray[0][@"textColor"]) {
  97 + self.segmentControl.titleSelectColor = [UIColor colorWithHexString:ininavArray[0][@"textColor"]];
  98 + [self.segmentControl setBottomViewColor:[UIColor colorWithHexString:ininavArray[0][@"textColor"]]];
99 } 99 }
100 self.segmentControl.viewControllers = controllers; 100 self.segmentControl.viewControllers = controllers;
101 } 101 }
CNLiveScioLive/Pages/Home/外宣要闻/Controller/CNLiveHeraldedNewsViewController.m
@@ -34,7 +34,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -34,7 +34,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
34 34
35 #pragma mark - Data 35 #pragma mark - Data
36 - (void)loadData{ 36 - (void)loadData{
37 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 37 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
38 //NSLog(@"%@",strUrl); 38 //NSLog(@"%@",strUrl);
39 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",self.cid,(long)self.pageNo]; 39 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",self.cid,(long)self.pageNo];
40 //NSLog(@"%@",categoryId); 40 //NSLog(@"%@",categoryId);
@@ -212,30 +212,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -212,30 +212,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
212 return cell; 212 return cell;
213 213
214 } 214 }
215 - else if([model.showType isEqualToString:@"1"]){  
216 - if(model.img && ![model.img isEqualToString:@""]){  
217 - //一张图 左边  
218 - CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
219 - if (!cell) {  
220 - cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
221 - }  
222 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
223 - cell.model = self.data[indexPath.row];  
224 - return cell;  
225 - }  
226 - //无图  
227 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
228 - if (!cell) {  
229 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
230 - }  
231 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
232 -// if (!cell) {  
233 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
234 -// }  
235 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
236 - cell.model = self.data[indexPath.row];  
237 - return cell;  
238 - }  
239 else if([model.showType isEqualToString:@"2"]){ 215 else if([model.showType isEqualToString:@"2"]){
240 //三张图 216 //三张图
241 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell]; 217 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell];
@@ -246,45 +222,25 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -246,45 +222,25 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
246 cell.model = self.data[indexPath.row]; 222 cell.model = self.data[indexPath.row];
247 return cell; 223 return cell;
248 224
249 - }  
250 - else if([model.showType isEqualToString:@"3"]){ 225 + }else{
  226 +
251 if(model.img){ 227 if(model.img){
252 - //一张图 左边  
253 - CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
254 - if (!cell) {  
255 - cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
256 - }  
257 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
258 - cell.model = self.data[indexPath.row];  
259 - return cell;  
260 - }  
261 - //无图  
262 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell]; 228 + CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];
263 if (!cell) { 229 if (!cell) {
264 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell]; 230 + cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];
265 } 231 }
266 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
267 -// if (!cell) {  
268 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
269 -// }  
270 cell.selectionStyle = UITableViewCellSelectionStyleNone; 232 cell.selectionStyle = UITableViewCellSelectionStyleNone;
271 cell.model = self.data[indexPath.row]; 233 cell.model = self.data[indexPath.row];
272 return cell; 234 return cell;
273 -  
274 - }else{ 235 + }
275 //无图 236 //无图
276 CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell]; 237 CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];
277 if (!cell) { 238 if (!cell) {
278 cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell]; 239 cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];
279 } 240 }
280 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
281 -// if (!cell) {  
282 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
283 -// }  
284 cell.selectionStyle = UITableViewCellSelectionStyleNone; 241 cell.selectionStyle = UITableViewCellSelectionStyleNone;
285 cell.model = self.data[indexPath.row]; 242 cell.model = self.data[indexPath.row];
286 return cell; 243 return cell;
287 -  
288 } 244 }
289 245
290 246
CNLiveScioLive/Pages/Home/外宣要闻/View/CNLiveNewsLeftPicTableViewCell.m
@@ -80,7 +80,12 @@ @@ -80,7 +80,12 @@
80 _titleLabel.text = model.title; 80 _titleLabel.text = model.title;
81 _timeLabel.text = [model.createDate componentsSeparatedByString:@" "][0]; 81 _timeLabel.text = [model.createDate componentsSeparatedByString:@" "][0];
82 [_picImage sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"placeholder"]]; 82 [_picImage sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"placeholder"]];
83 - 83 + if (model.titleColor) {
  84 + _titleLabel.textColor = [UIColor colorWithHexString:model.titleColor];
  85 + }
  86 + if (model.tagsColor) {
  87 + _projectLabel.backgroundColor = [UIColor colorWithHexString:model.tagsColor];
  88 + }
84 //专题 89 //专题
85 if(model.tags && ![model.tags isEqualToString:@""]){ 90 if(model.tags && ![model.tags isEqualToString:@""]){
86 _projectLabel.text = model.tags; 91 _projectLabel.text = model.tags;
CNLiveScioLive/Pages/Home/外宣要闻/View/CNLiveNewsNoPicTableViewCell.m
@@ -63,6 +63,12 @@ @@ -63,6 +63,12 @@
63 - (void)setModel:(CNHomeModel *)model{ 63 - (void)setModel:(CNHomeModel *)model{
64 _model = model; 64 _model = model;
65 _titleLabel.text = model.title; 65 _titleLabel.text = model.title;
  66 + if (model.titleColor) {
  67 + _titleLabel.textColor = [UIColor colorWithHexString:model.titleColor];
  68 + }
  69 + if (model.tagsColor) {
  70 + _projectLabel.backgroundColor = [UIColor colorWithHexString:model.tagsColor];
  71 + }
66 _timeLabel.text = [model.createDate componentsSeparatedByString:@" "][0]; 72 _timeLabel.text = [model.createDate componentsSeparatedByString:@" "][0];
67 73
68 if(model.tags && ![model.tags isEqualToString:@""]){ 74 if(model.tags && ![model.tags isEqualToString:@""]){
CNLiveScioLive/Pages/Home/外宣要闻/View/CNLiveNewsThreePicTableViewCell.m
@@ -94,7 +94,12 @@ @@ -94,7 +94,12 @@
94 _projectLabel.text = model.subjecttag; 94 _projectLabel.text = model.subjecttag;
95 95
96 } 96 }
97 - 97 + if (model.titleColor) {
  98 + _titleLabel.textColor = [UIColor colorWithHexString:model.titleColor];
  99 + }
  100 + if (model.tagsColor) {
  101 + _projectLabel.backgroundColor = [UIColor colorWithHexString:model.tagsColor];
  102 + }
98 [_leftImage sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"placeholder"]]; 103 [_leftImage sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"placeholder"]];
99 [_picImage sd_setImageWithURL:[NSURL URLWithString:model.imgSmall] placeholderImage:[UIImage imageNamed:@"placeholder"]]; 104 [_picImage sd_setImageWithURL:[NSURL URLWithString:model.imgSmall] placeholderImage:[UIImage imageNamed:@"placeholder"]];
100 [_rightImage sd_setImageWithURL:[NSURL URLWithString:model.imgBig] placeholderImage:[UIImage imageNamed:@"placeholder"]]; 105 [_rightImage sd_setImageWithURL:[NSURL URLWithString:model.imgBig] placeholderImage:[UIImage imageNamed:@"placeholder"]];
CNLiveScioLive/Pages/Home/搜索/Controller/CNLiveSearchViewController.m
@@ -214,7 +214,7 @@ @@ -214,7 +214,7 @@
214 [self loadScreenData]; 214 [self loadScreenData];
215 } 215 }
216 - (void)loadScreenData { 216 - (void)loadScreenData {
217 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/page"; 217 + NSString *strUrl = REQUESTURL(@"gxb/api/page");
218 NSLog(@"%@",strUrl); 218 NSLog(@"%@",strUrl);
219 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"b73ec15c-0d1b-11e6-b082-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"}; 219 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"b73ec15c-0d1b-11e6-b082-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"};
220 NSLog(@"%@",parameters); 220 NSLog(@"%@",parameters);
@@ -484,6 +484,12 @@ @@ -484,6 +484,12 @@
484 if ([text isEqualToString:@"<null>"]) { 484 if ([text isEqualToString:@"<null>"]) {
485 text = @""; 485 text = @"";
486 } 486 }
  487 + if (_dic[@"titleColor"]) {
  488 + cell.titleLabel.textColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  489 + }
  490 + if (_dic[@"tagsColor"]) {
  491 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  492 + }
487 cell.tagsLabel.text = text; 493 cell.tagsLabel.text = text;
488 [cell reSetTagFrame]; 494 [cell reSetTagFrame];
489 return cell; 495 return cell;
CNLiveScioLive/Pages/Home/新闻详情/Controller/VideoDetailViewController.m
@@ -49,7 +49,7 @@ static NSString *newsLeftPicTableViewCell = @&quot;CNLiveNewsLeftPicTableViewCell&quot;; @@ -49,7 +49,7 @@ static NSString *newsLeftPicTableViewCell = @&quot;CNLiveNewsLeftPicTableViewCell&quot;;
49 [AlertViewTool showHUDAddedToView:self.view text:CustomStr(@"NetworkiInterruption")]; 49 [AlertViewTool showHUDAddedToView:self.view text:CustomStr(@"NetworkiInterruption")];
50 return; 50 return;
51 } 51 }
52 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/programRelative"; 52 + NSString *strUrl = REQUESTURL(@"gxb/api/programRelative");
53 NSLog(@"%@",strUrl); 53 NSLog(@"%@",strUrl);
54 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",self.model.cmsContentId]; 54 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",self.model.cmsContentId];
55 NSLog(@"%@",categoryId); 55 NSLog(@"%@",categoryId);
CNLiveScioLive/Pages/Home/新闻详情/OldController/MoreSpecialViewController.m
@@ -120,7 +120,7 @@ @@ -120,7 +120,7 @@
120 - (void)loadData { 120 - (void)loadData {
121 self.isAll = NO; 121 self.isAll = NO;
122 self.pageNumber = 1; 122 self.pageNumber = 1;
123 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 123 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
124 NSLog(@"%@",strUrl); 124 NSLog(@"%@",strUrl);
125 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",_dictionary[@"cid"],(long)self.pageNumber]; 125 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",_dictionary[@"cid"],(long)self.pageNumber];
126 NSLog(@"%@",categoryId); 126 NSLog(@"%@",categoryId);
@@ -173,7 +173,7 @@ @@ -173,7 +173,7 @@
173 return; 173 return;
174 } 174 }
175 self.pageNumber++; 175 self.pageNumber++;
176 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 176 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
177 NSLog(@"%@",strUrl); 177 NSLog(@"%@",strUrl);
178 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",_dictionary[@"cid"],(long)self.pageNumber]; 178 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",_dictionary[@"cid"],(long)self.pageNumber];
179 NSLog(@"%@",categoryId); 179 NSLog(@"%@",categoryId);
CNLiveScioLive/Pages/Home/新闻详情/OldController/OldArticleDetailViewController.m
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 // 详情数据 91 // 详情数据
92 NSDictionary *parameters = @{@"params":[NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"type\":\"program\",\"id\":\"%@\"}", _dictionary[@"cmsContentId"]]}; 92 NSDictionary *parameters = @{@"params":[NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"type\":\"program\",\"id\":\"%@\"}", _dictionary[@"cmsContentId"]]};
93 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; 93 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
94 - [manager POST:@"http://app.phonemovie.cnlive.com/gxb/api/programDetail" 94 + [manager POST:REQUESTURL(@"gxb/api/programDetail")
95 parameters:parameters headers:nil 95 parameters:parameters headers:nil
96 progress:^(NSProgress * _Nonnull uploadProgress) {} 96 progress:^(NSProgress * _Nonnull uploadProgress) {}
97 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) { 97 success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
@@ -126,7 +126,7 @@ @@ -126,7 +126,7 @@
126 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")]; 126 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")];
127 return; 127 return;
128 } 128 }
129 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/programRelative"; 129 + NSString *strUrl = REQUESTURL(@"gxb/api/programRelative");
130 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]]; 130 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]];
131 NSDictionary *parameters = @{@"params":categoryId}; 131 NSDictionary *parameters = @{@"params":categoryId};
132 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; 132 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
CNLiveScioLive/Pages/Home/新闻详情/OldController/Present/VideoDetailPresent.m
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")]; 16 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")];
17 return; 17 return;
18 } 18 }
19 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/programDetail"; 19 + NSString *strUrl = REQUESTURL(@"gxb/api/programDetail");
20 NSLog(@"%@",strUrl); 20 NSLog(@"%@",strUrl);
21 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"type\":\"program\",\"id\":\"%@\"}",reportId]; 21 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"type\":\"program\",\"id\":\"%@\"}",reportId];
22 NSLog(@"%@",categoryId); 22 NSLog(@"%@",categoryId);
@@ -49,7 +49,7 @@ @@ -49,7 +49,7 @@
49 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")]; 49 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")];
50 return; 50 return;
51 } 51 }
52 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/programRelative"; 52 + NSString *strUrl = REQUESTURL(@"gxb/api/programRelative");
53 NSLog(@"%@",strUrl); 53 NSLog(@"%@",strUrl);
54 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",reportId]; 54 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",reportId];
55 NSLog(@"%@",categoryId); 55 NSLog(@"%@",categoryId);
CNLiveScioLive/Pages/Home/新闻详情/OldController/SCIOSpecialViewController.m
@@ -205,7 +205,7 @@ @@ -205,7 +205,7 @@
205 - (void)loadData { 205 - (void)loadData {
206 self.isAll = NO; 206 self.isAll = NO;
207 self.pageNumber = 1; 207 self.pageNumber = 1;
208 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/objectContent"; 208 + NSString *strUrl = REQUESTURL(@"gxb/api/objectContent");
209 NSLog(@"%@",strUrl); 209 NSLog(@"%@",strUrl);
210 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]]; 210 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]];
211 NSLog(@"%@",categoryId); 211 NSLog(@"%@",categoryId);
@@ -260,7 +260,7 @@ @@ -260,7 +260,7 @@
260 return; 260 return;
261 } 261 }
262 self.pageNumber++; 262 self.pageNumber++;
263 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 263 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
264 NSLog(@"%@",strUrl);//,\"page\":\"%ld\",\"pageSize\":\"10\" 264 NSLog(@"%@",strUrl);//,\"page\":\"%ld\",\"pageSize\":\"10\"
265 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]];//,(long)self.pageNumber 265 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]];//,(long)self.pageNumber
266 NSLog(@"%@",categoryId); 266 NSLog(@"%@",categoryId);
@@ -439,6 +439,12 @@ @@ -439,6 +439,12 @@
439 439
440 cell.titleLabel.text = _dic[@"title"]; 440 cell.titleLabel.text = _dic[@"title"];
441 cell.timeLabel.text = _dic[@"createDate"]; 441 cell.timeLabel.text = _dic[@"createDate"];
  442 + if (_dic[@"titleColor"]) {
  443 + cell.tintColor = [UIColor colorWithHexString:_dic[@"titleColor"]];
  444 + }
  445 + if (_dic[@"tagsColor"]) {
  446 + cell.tagsLabel.backgroundColor = [UIColor colorWithHexString:_dic[@"tagsColor"]];
  447 + }
442 NSString *text = [NSString stringWithFormat:@"%@",_dic[@"tags"]]; 448 NSString *text = [NSString stringWithFormat:@"%@",_dic[@"tags"]];
443 if ([text isEqualToString:@"<null>"]) { 449 if ([text isEqualToString:@"<null>"]) {
444 text = @""; 450 text = @"";
CNLiveScioLive/Pages/Home/答记者问/Controller/CNLiveReporterAskedViewController.m
@@ -29,7 +29,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -29,7 +29,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
29 29
30 #pragma mark - Data 30 #pragma mark - Data
31 - (void)loadData{ 31 - (void)loadData{
32 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 32 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
33 //NSLog(@"%@",strUrl); 33 //NSLog(@"%@",strUrl);
34 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",self.cid,(long)self.pageNo]; 34 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"10\"}",self.cid,(long)self.pageNo];
35 //NSLog(@"%@",categoryId); 35 //NSLog(@"%@",categoryId);
@@ -181,30 +181,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -181,30 +181,6 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
181 return cell; 181 return cell;
182 182
183 } 183 }
184 - else if([model.showType isEqualToString:@"1"]){  
185 - if(model.img && ![model.img isEqualToString:@""]){  
186 - //一张图 左边  
187 - CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
188 - if (!cell) {  
189 - cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
190 - }  
191 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
192 - cell.model = self.data[indexPath.row];  
193 - return cell;  
194 - }  
195 - //无图  
196 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
197 - if (!cell) {  
198 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
199 - }  
200 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
201 -// if (!cell) {  
202 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
203 -// }  
204 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
205 - cell.model = self.data[indexPath.row];  
206 - return cell;  
207 - }  
208 else if([model.showType isEqualToString:@"2"]){ 184 else if([model.showType isEqualToString:@"2"]){
209 //三张图 185 //三张图
210 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell]; 186 CNLiveNewsThreePicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsThreePicTableViewCell];
@@ -216,7 +192,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -216,7 +192,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
216 return cell; 192 return cell;
217 193
218 } 194 }
219 - else if([model.showType isEqualToString:@"3"]){ 195 + else{
220 if(model.img){ 196 if(model.img){
221 //一张图 左边 197 //一张图 左边
222 CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell]; 198 CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];
@@ -240,23 +216,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;; @@ -240,23 +216,7 @@ static NSString *newsUpPicTableViewCell = @&quot;CNLiveNewsUpPicTableViewCell&quot;;
240 cell.model = self.data[indexPath.row]; 216 cell.model = self.data[indexPath.row];
241 return cell; 217 return cell;
242 218
243 - }else{  
244 - //无图  
245 - CNLiveNewsNoPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsNoPicTableViewCell];  
246 - if (!cell) {  
247 - cell = [[CNLiveNewsNoPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsNoPicTableViewCell];  
248 - }  
249 -// CNLiveNewsLeftPicTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:newsLeftPicTableViewCell];  
250 -// if (!cell) {  
251 -// cell = [[CNLiveNewsLeftPicTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:newsLeftPicTableViewCell];  
252 -// }  
253 - cell.selectionStyle = UITableViewCellSelectionStyleNone;  
254 - cell.model = self.data[indexPath.row];  
255 - return cell;  
256 -  
257 } 219 }
258 -  
259 -  
260 } 220 }
261 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 221 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
262 CNHomeModel *model = self.data[indexPath.row]; 222 CNHomeModel *model = self.data[indexPath.row];
CNLiveScioLive/Pages/Home/高级搜索/Controller/CNLiveAdvancedSearchViewController.m
@@ -152,7 +152,7 @@ @@ -152,7 +152,7 @@
152 152
153 - (void)searchApiWithKeywords:(NSString *)keywords { 153 - (void)searchApiWithKeywords:(NSString *)keywords {
154 154
155 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/seniorProgramList"; 155 + NSString *strUrl = REQUESTURL(@"gxb/api/seniorProgramList");
156 NSMutableDictionary *param = [NSMutableDictionary dictionaryWithDictionary:self.paramDict]; 156 NSMutableDictionary *param = [NSMutableDictionary dictionaryWithDictionary:self.paramDict];
157 157
158 [param setObject:@"i" forKey:@"plat"]; 158 [param setObject:@"i" forKey:@"plat"];
CNLiveScioLive/Pages/Home/高级搜索/Controller/SearchResultViewController.m
@@ -297,7 +297,7 @@ @@ -297,7 +297,7 @@
297 297
298 - (void)loadMoreData { 298 - (void)loadMoreData {
299 299
300 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/seniorProgramList"; 300 + NSString *strUrl = REQUESTURL(@"gxb/api/seniorProgramList");
301 NSMutableDictionary *param = [NSMutableDictionary dictionaryWithDictionary:self.moreParam]; 301 NSMutableDictionary *param = [NSMutableDictionary dictionaryWithDictionary:self.moreParam];
302 302
303 [param setObject:[NSString stringWithFormat:@"%ld",(long)self.page] forKey:@"page"]; 303 [param setObject:[NSString stringWithFormat:@"%ld",(long)self.page] forKey:@"page"];
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:@"http://app.phonemovie.cnlive.com/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"];
@@ -234,7 +234,7 @@ @@ -234,7 +234,7 @@
234 234
235 - (void)getMediaList 235 - (void)getMediaList
236 { 236 {
237 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/mediaList"; 237 + NSString *strUrl = REQUESTURL(@"gxb/api/mediaList");
238 NSMutableDictionary *param = [NSMutableDictionary dictionary]; 238 NSMutableDictionary *param = [NSMutableDictionary dictionary];
239 239
240 [param setObject:@"i" forKey:@"plat"]; 240 [param setObject:@"i" forKey:@"plat"];
CNLiveScioLive/Pages/Live/Controller/CNLiveViewController.m
@@ -66,7 +66,7 @@ static NSString *indicatorTableViewCell = @&quot;CNLiveIndicatorTableViewCell&quot;; @@ -66,7 +66,7 @@ static NSString *indicatorTableViewCell = @&quot;CNLiveIndicatorTableViewCell&quot;;
66 }]; 66 }];
67 } 67 }
68 - (void)loadData{ 68 - (void)loadData{
69 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 69 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
70 NSLog(@"%@",strUrl); 70 NSLog(@"%@",strUrl);
71 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/fbhhf/\",\"page\":\"%ld\",\"pageSize\":\"%@\"}",(long)self.pageNo,REQUEST_PAGE_SIZE]; 71 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/fbhhf/\",\"page\":\"%ld\",\"pageSize\":\"%@\"}",(long)self.pageNo,REQUEST_PAGE_SIZE];
72 NSLog(@"%@",josnParameters); 72 NSLog(@"%@",josnParameters);
@@ -146,7 +146,7 @@ static NSString *indicatorTableViewCell = @&quot;CNLiveIndicatorTableViewCell&quot;; @@ -146,7 +146,7 @@ static NSString *indicatorTableViewCell = @&quot;CNLiveIndicatorTableViewCell&quot;;
146 }]; 146 }];
147 } 147 }
148 - (void)loadYGData { 148 - (void)loadYGData {
149 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 149 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
150 //NSLog(@"%@",strUrl); 150 //NSLog(@"%@",strUrl);
151 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"wz/fbhgg/\",\"page\":\"1\",\"pageSize\":\"1\"}"]; 151 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"wz/fbhgg/\",\"page\":\"1\",\"pageSize\":\"1\"}"];
152 //NSLog(@"%@",categoryId); 152 //NSLog(@"%@",categoryId);
CNLiveScioLive/Pages/Live/Controller/VideoPlayBackViewController.m
@@ -542,7 +542,7 @@ @@ -542,7 +542,7 @@
542 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")]; 542 [AlertViewTool showHUDViewText:CustomStr(@"NetworkiInterruption")];
543 return; 543 return;
544 } 544 }
545 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/programRelative"; 545 + NSString *strUrl = REQUESTURL(@"gxb/api/programRelative");
546 NSLog(@"%@",strUrl); 546 NSLog(@"%@",strUrl);
547 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]]; 547 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"cmsContentId\":\"%@\"}",_dictionary[@"cmsContentId"]];
548 NSLog(@"%@",categoryId); 548 NSLog(@"%@",categoryId);
CNLiveScioLive/Pages/My/通知公告/Controller/CNMyAnnouncementsViewController.m
@@ -25,7 +25,7 @@ static NSString *myAnnouncementsTableViewCell = @&quot;CNMyAnnouncementsTableViewCell @@ -25,7 +25,7 @@ static NSString *myAnnouncementsTableViewCell = @&quot;CNMyAnnouncementsTableViewCell
25 25
26 #pragma mark - Data 26 #pragma mark - Data
27 - (void)loadData{ 27 - (void)loadData{
28 - NSString *url = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 28 + NSString *url = REQUESTURL(@"gxb/api/cataloglatest");
29 NSLog(@"%@",url); 29 NSLog(@"%@",url);
30 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"%@\",\"lang\":\"%@\"}",IS_CHINESE?@"wz/fbhgg/":@"wz/notice/",(long)self.pageNo,@"15", IS_CHINESE?@"cn":@"en"]; 30 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"%@\",\"lang\":\"%@\"}",IS_CHINESE?@"wz/fbhgg/":@"wz/notice/",(long)self.pageNo,@"15", IS_CHINESE?@"cn":@"en"];
31 NSLog(@"%@",josnParameters); 31 NSLog(@"%@",josnParameters);
CNLiveScioLive/Pages/Newsound/Controller/CNNewsoundBaseViewController.m
@@ -27,7 +27,7 @@ static NSString *newsoundBaseRecommendTableViewCell = @&quot;CNNewsoundBaseRecommendT @@ -27,7 +27,7 @@ static NSString *newsoundBaseRecommendTableViewCell = @&quot;CNNewsoundBaseRecommendT
27 27
28 #pragma mark - Data 28 #pragma mark - Data
29 - (void)getData{ 29 - (void)getData{
30 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/page"; 30 + NSString *strUrl = REQUESTURL(@"gxb/api/page");
31 NSLog(@"%@",strUrl); 31 NSLog(@"%@",strUrl);
32 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"%@\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"%@\",\"pageType\":\"%@\"}",self.plat, self.pageUUID, self.recommendKey]; 32 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"%@\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"%@\",\"pageType\":\"%@\"}",self.plat, self.pageUUID, self.recommendKey];
33 // @"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"d6262244-b059-11e6-b220-c7d8a7a18cc4\",\"pageType\":\"index\"}" 33 // @"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"d6262244-b059-11e6-b220-c7d8a7a18cc4\",\"pageType\":\"index\"}"
@@ -75,7 +75,7 @@ static NSString *newsoundBaseRecommendTableViewCell = @&quot;CNNewsoundBaseRecommendT @@ -75,7 +75,7 @@ static NSString *newsoundBaseRecommendTableViewCell = @&quot;CNNewsoundBaseRecommendT
75 75
76 } 76 }
77 - (void)loadData{ 77 - (void)loadData{
78 - NSString *url = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 78 + NSString *url = REQUESTURL(@"gxb/api/cataloglatest");
79 NSLog(@"%@",url); 79 NSLog(@"%@",url);
80 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/%@/\",\"page\":\"%ld\",\"pageSize\":\"%@\"}",self.latestKey,(long)self.pageNo,REQUEST_PAGE_SIZE]; 80 NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/%@/\",\"page\":\"%ld\",\"pageSize\":\"%@\"}",self.latestKey,(long)self.pageNo,REQUEST_PAGE_SIZE];
81 NSLog(@"%@",josnParameters); 81 NSLog(@"%@",josnParameters);
CNLiveScioLive/Pages/Newsound/OldController/VoiceViewController.m
@@ -87,7 +87,7 @@ static const NSInteger margin = 34; @@ -87,7 +87,7 @@ static const NSInteger margin = 34;
87 87
88 //国新之声推荐 88 //国新之声推荐
89 - (void)loadVoiceTopic { 89 - (void)loadVoiceTopic {
90 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/page"; 90 + NSString *strUrl = REQUESTURL(@"gxb/api/page");
91 NSLog(@"%@",strUrl); 91 NSLog(@"%@",strUrl);
92 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"d6262244-b059-11e6-b220-c7d8a7a18cc4\",\"pageType\":\"index\"}"}; 92 NSDictionary *parameters = @{@"params":@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"d6262244-b059-11e6-b220-c7d8a7a18cc4\",\"pageType\":\"index\"}"};
93 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; 93 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
@@ -122,7 +122,7 @@ static const NSInteger margin = 34; @@ -122,7 +122,7 @@ static const NSInteger margin = 34;
122 self.pageNumber = 1; 122 self.pageNumber = 1;
123 [self.tableView.mj_footer setHidden:NO]; 123 [self.tableView.mj_footer setHidden:NO];
124 124
125 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 125 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
126 126
127 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/gxzs/\",\"page\":\"%ld\",\"pageSize\":\"10\"}",(long)self.pageNumber]; 127 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/gxzs/\",\"page\":\"%ld\",\"pageSize\":\"10\"}",(long)self.pageNumber];
128 128
@@ -185,7 +185,7 @@ static const NSInteger margin = 34; @@ -185,7 +185,7 @@ static const NSInteger margin = 34;
185 185
186 //VOS专题 186 //VOS专题
187 - (void)loadVOSTopic { 187 - (void)loadVOSTopic {
188 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/page"; 188 + NSString *strUrl = REQUESTURL(@"gxb/api/page");
189 NSLog(@"%@",strUrl); 189 NSLog(@"%@",strUrl);
190 NSDictionary *parameters = @{@"params":@"{\"plat\":\"a\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"bca5bdd0-259a-11e8-908c-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"}; 190 NSDictionary *parameters = @{@"params":@"{\"plat\":\"a\",\"version\":\"5.0\",\"appid\":\"gxb\",\"pageUUID\":\"bca5bdd0-259a-11e8-908c-c7d8a7a18cc4\",\"pageType\":\"channelList\"}"};
191 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; 191 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
@@ -222,7 +222,7 @@ static const NSInteger margin = 34; @@ -222,7 +222,7 @@ static const NSInteger margin = 34;
222 self.engPageNumber = 1; 222 self.engPageNumber = 1;
223 [self.enTableView.mj_footer setHidden:NO]; 223 [self.enTableView.mj_footer setHidden:NO];
224 224
225 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 225 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
226 226
227 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"a\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/news/\",\"page\":\"%ld\"}",(long)self.engPageNumber]; 227 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"a\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/news/\",\"page\":\"%ld\"}",(long)self.engPageNumber];
228 228
@@ -287,7 +287,7 @@ static const NSInteger margin = 34; @@ -287,7 +287,7 @@ static const NSInteger margin = 34;
287 - (void)loadMoreOfGXZS { 287 - (void)loadMoreOfGXZS {
288 self.pageNumber++; 288 self.pageNumber++;
289 289
290 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 290 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
291 291
292 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/gxzs/\",\"page\":\"%ld\",\"pageSize\":\"10\"}",(long)self.pageNumber]; 292 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/gxzs/\",\"page\":\"%ld\",\"pageSize\":\"10\"}",(long)self.pageNumber];
293 293
@@ -343,7 +343,7 @@ static const NSInteger margin = 34; @@ -343,7 +343,7 @@ static const NSInteger margin = 34;
343 - (void)loadMoreOfVOS { 343 - (void)loadMoreOfVOS {
344 self.engPageNumber++; 344 self.engPageNumber++;
345 345
346 - NSString *strUrl = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; 346 + NSString *strUrl = REQUESTURL(@"gxb/api/cataloglatest");
347 347
348 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"a\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/news/\",\"page\":\"%ld\"}",(long)self.engPageNumber]; 348 NSString *categoryId = [NSString stringWithFormat:@"{\"plat\":\"a\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"spzl/news/\",\"page\":\"%ld\"}",(long)self.engPageNumber];
349 349