Authored by 郭成尧

店铺内搜索跳转到其他店铺

16.3 KB | W: | H:

17.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -36,7 +36,7 @@ class SearchController extends AbstractAction @@ -36,7 +36,7 @@ class SearchController extends AbstractAction
36 { 36 {
37 // 过滤请求参数 37 // 过滤请求参数
38 $condition = filter_input_array(INPUT_GET, array( 38 $condition = filter_input_array(INPUT_GET, array(
39 - 'shop' => FILTER_DEFAULT, 39 + 'shop_id' => FILTER_DEFAULT,
40 'categoryId' => FILTER_DEFAULT, 40 'categoryId' => FILTER_DEFAULT,
41 'subCategoryId' => FILTER_DEFAULT, 41 'subCategoryId' => FILTER_DEFAULT,
42 'title' => FILTER_DEFAULT, 42 'title' => FILTER_DEFAULT,
@@ -105,7 +105,7 @@ class SearchController extends AbstractAction @@ -105,7 +105,7 @@ class SearchController extends AbstractAction
105 $brandNames = array(); 105 $brandNames = array();
106 106
107 // 跳转到品牌商品列表页 107 // 跳转到品牌商品列表页
108 - if ($domain !== null) { 108 + if ($domain !== null && empty($condition['shop_id'])) {
109 $url = Helpers::url('', array( 109 $url = Helpers::url('', array(
110 'from' => 'search', 110 'from' => 'search',
111 'query' => $query 111 'query' => $query