...
|
...
|
@@ -487,15 +487,12 @@ class IndexController extends AbstractAction |
|
|
|
|
|
/* tar add 160826 */
|
|
|
$data['gender'] = $this->get('gender');
|
|
|
$data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie();
|
|
|
|
|
|
//接受APP传来的封面频道参数
|
|
|
$coverChannel = Helpers::getYhHhannel($this->get('yh_channel', ''));
|
|
|
|
|
|
$filter = Product\SearchModel::filter(array(
|
|
|
'shop_id' => $shopId,
|
|
|
'gender' => empty($data['gender']) ? '' : $data['gender'],
|
|
|
'channel' => empty($data['channel']) ? '' : $data['channel'],
|
|
|
'brand' => empty($data['brand']) ? '' : $data['brand']
|
|
|
));
|
|
|
$data['filter'] = isset($filter['filter']) ? $filter['filter'] : array();
|
...
|
...
|
@@ -504,7 +501,6 @@ class IndexController extends AbstractAction |
|
|
$goods = \Product\SearchModel::search(array(
|
|
|
'shop' => $shopId,
|
|
|
'gender' => empty($data['gender']) ? '' : $data['gender'],
|
|
|
'channel' => empty($data['channel']) ? '' : $data['channel'],
|
|
|
'brand' => empty($data['brand']) ? '' : $data['brand'],
|
|
|
'coverChannel' => $coverChannel
|
|
|
));
|
...
|
...
|
@@ -517,7 +513,6 @@ class IndexController extends AbstractAction |
|
|
'url' => Helpers::url('/product/index/category', array('shop_id' => $shopId))
|
|
|
),
|
|
|
'gender' => $data['gender'],
|
|
|
'channel' => $data['channel'],
|
|
|
'coverChannel' => $coverChannel,
|
|
|
'appVersion' => !empty($appVersion)
|
|
|
));
|
...
|
...
|
|