Authored by 郝肖肖

验证变量是否返回

... ... @@ -490,14 +490,12 @@ class IndexController extends AbstractAction
$data['gender'] = $this->get('gender');
$data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie();
$filter = Product\SearchModel::filter(array(
$filter = Product\SearchModel::filter(array(
'shop_id' => $shopId,
'gender' => $data['gender'],
'channel' => $data['channel'],
'brand' => $data['brand']
'gender' => empty($data['gender']) ? '' : $data['gender'],
'brand' => empty($data['brand']) ? '' : $data['brand']
));
$data['filter'] = $filter['filter'];
$data['filter'] = isset($filter['filter']) ? $filter['filter'] : array();
/* tar add 160931 首屏加载,加载一次 goods */
$goods = \Product\SearchModel::search(array(
... ...