Showing
1 changed file
with
0 additions
and
31 deletions
1 | -<?php | ||
2 | - | ||
3 | -use Action\AbstractAction; | ||
4 | -use LibModels\Wap\Category\FocusData; | ||
5 | - | ||
6 | -/** | ||
7 | - * 品牌 | ||
8 | - */ | ||
9 | -class FocusController extends AbstractAction | ||
10 | -{ | ||
11 | - | ||
12 | - public function indexAction() | ||
13 | - { | ||
14 | - // 获取关注数据 | ||
15 | - $gender = $this->get('gender', '1,3'); | ||
16 | - $focusData = FocusData::getFocusData(0, $gender); | ||
17 | - | ||
18 | - $focus = array(); | ||
19 | - if ($focusData['code'] == 200) { | ||
20 | - $focus = $focusData['data']; | ||
21 | - } | ||
22 | - | ||
23 | - echo '<pre>'; | ||
24 | - var_dump($focus); | ||
25 | - exit; | ||
26 | - | ||
27 | - $this->_view->assign('title', 'YOHO!BUY 有货'); | ||
28 | - $this->_view->display('class', compact('focus')); | ||
29 | - } | ||
30 | - | ||
31 | -} |
-
Please register or login to post a comment