Authored by 周少峰

Merge branch 'release/4.4' of http://git.dev.yoho.cn/web/yohobuywap into release/4.4

@@ -218,6 +218,7 @@ class SearchController extends AbstractAction @@ -218,6 +218,7 @@ class SearchController extends AbstractAction
218 218
219 /* 过滤请求参数 */ 219 /* 过滤请求参数 */
220 $condition = filter_input_array(INPUT_GET, array( 220 $condition = filter_input_array(INPUT_GET, array(
  221 + 'shop_id' => FILTER_DEFAULT,
221 'query' => FILTER_DEFAULT, 222 'query' => FILTER_DEFAULT,
222 'specialsale_id' => FILTER_DEFAULT, 223 'specialsale_id' => FILTER_DEFAULT,
223 'promotion' => FILTER_DEFAULT, 224 'promotion' => FILTER_DEFAULT,
@@ -233,6 +234,10 @@ class SearchController extends AbstractAction @@ -233,6 +234,10 @@ class SearchController extends AbstractAction
233 'gender' => FILTER_DEFAULT, 234 'gender' => FILTER_DEFAULT,
234 'p_d' => FILTER_DEFAULT, 235 'p_d' => FILTER_DEFAULT,
235 'page' => FILTER_VALIDATE_INT,), false); 236 'page' => FILTER_VALIDATE_INT,), false);
  237 +
  238 + if(!empty($condition['shop_id'])){
  239 + $condition['shop'] = empty($condition['shop_id']);
  240 + }
236 // 转义分类 241 // 转义分类
237 if (isset($condition['sort'])) { 242 if (isset($condition['sort'])) {
238 $condition['sort'] = rawurldecode($condition['sort']); 243 $condition['sort'] = rawurldecode($condition['sort']);