...
|
...
|
@@ -62,6 +62,7 @@ class SearchController extends AbstractAction |
|
|
'channel' => FILTER_DEFAULT,
|
|
|
'outlets' => FILTER_DEFAULT,
|
|
|
'ageLevel' => FILTER_DEFAULT,
|
|
|
'students' => FILTER_DEFAULT,
|
|
|
'p_d' => FILTER_DEFAULT,), false);
|
|
|
if (isset($condition['shop_id'])) {
|
|
|
$condition['shopId'] = $condition['shop_id'];
|
...
|
...
|
@@ -80,7 +81,7 @@ class SearchController extends AbstractAction |
|
|
}
|
|
|
|
|
|
// 标识用户是否有输入搜索内容
|
|
|
$haveQuery = $query !== '';
|
|
|
$haveQuery = $query;
|
|
|
// 标识用户搜的是不是一级品类
|
|
|
$isQueryFirstClass = false;
|
|
|
// 标识用户搜的是不是二级品类
|
...
|
...
|
@@ -252,6 +253,7 @@ class SearchController extends AbstractAction |
|
|
'p_d' => FILTER_DEFAULT,
|
|
|
'outlets' => FILTER_DEFAULT,
|
|
|
'age_level' => FILTER_DEFAULT,
|
|
|
'students' => FILTER_DEFAULT,
|
|
|
'page' => FILTER_VALIDATE_INT,), false);
|
|
|
|
|
|
if (!empty($condition['shop_id'])) {
|
...
|
...
|
@@ -401,6 +403,7 @@ class SearchController extends AbstractAction |
|
|
'gender' => FILTER_DEFAULT,
|
|
|
'channel' => FILTER_DEFAULT,
|
|
|
'ageLevel' => FILTER_DEFAULT,
|
|
|
'students' => FILTER_DEFAULT,
|
|
|
'p_d' => FILTER_DEFAULT,), false);
|
|
|
|
|
|
// 转义分类
|
...
|
...
|
|