Showing
1 changed file
with
5 additions
and
6 deletions
@@ -339,35 +339,34 @@ class HomeModel | @@ -339,35 +339,34 @@ class HomeModel | ||
339 | } | 339 | } |
340 | 340 | ||
341 | $data = IndexData::channelData(); | 341 | $data = IndexData::channelData(); |
342 | - | ||
343 | if (!empty($data['data']['list'])) { | 342 | if (!empty($data['data']['list'])) { |
344 | $build = array(); | 343 | $build = array(); |
345 | foreach ($data['data']['list'] as $value) { | 344 | foreach ($data['data']['list'] as $value) { |
346 | $build = array(); | 345 | $build = array(); |
347 | switch (intval($value['channel_id'])) { | 346 | switch (intval($value['channel_id'])) { |
348 | case 1: | 347 | case 1: |
349 | - $build['href'] = '/boys'; | 348 | + $build['href'] = Helpers::getFilterUrl($value['url']); |
350 | $build['title'] = '男生'; | 349 | $build['title'] = '男生'; |
351 | $build['entitle'] = 'BOYS'; | 350 | $build['entitle'] = 'BOYS'; |
352 | break; | 351 | break; |
353 | case 2: | 352 | case 2: |
354 | - $build['href'] = '/girls'; | 353 | + $build['href'] = Helpers::getFilterUrl($value['url']); |
355 | $build['title'] = '女生'; | 354 | $build['title'] = '女生'; |
356 | $build['entitle'] = 'GIRLS'; | 355 | $build['entitle'] = 'GIRLS'; |
357 | break; | 356 | break; |
358 | case 3: | 357 | case 3: |
359 | - $build['href'] = '/kids'; | 358 | + $build['href'] = Helpers::getFilterUrl($value['url']); |
360 | $build['title'] = '潮童'; | 359 | $build['title'] = '潮童'; |
361 | $build['entitle'] = 'KIDS'; | 360 | $build['entitle'] = 'KIDS'; |
362 | break; | 361 | break; |
363 | case 4: | 362 | case 4: |
364 | - $build['href'] = '/lifestyle'; | 363 | + $build['href'] = Helpers::getFilterUrl($value['url']); |
365 | $build['title'] = '创意生活'; | 364 | $build['title'] = '创意生活'; |
366 | $build['entitle'] = 'LIFESTYLE'; | 365 | $build['entitle'] = 'LIFESTYLE'; |
367 | break; | 366 | break; |
368 | case 5: | 367 | case 5: |
369 | $result['showYohood'] = true; | 368 | $result['showYohood'] = true; |
370 | - $result['yohoodHref'] = 'http://yohood.cn'; | 369 | + $result['yohoodHref'] = Helpers::getFilterUrl($value['url']); |
371 | break; | 370 | break; |
372 | default: | 371 | default: |
373 | continue; | 372 | continue; |
-
Please register or login to post a comment