xialei 1 год назад
Родитель
Сommit
162682435b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/controller/api/store/merchant/Merchant.php

+ 1 - 2
app/controller/api/store/merchant/Merchant.php

@@ -120,7 +120,7 @@ class Merchant extends BaseController
120 120
         if($params['pageSize']!=''){
121 121
             $limit=$params['pageSize'];
122 122
         }
123
-        $where = $this->request->params(['keyword','order','mer_cate_id','price_on', 'price_off','brand_id']);
123
+        $where = $this->request->params(['keyword','order','mer_cate_id', 'cate_id','price_on', 'price_off','brand_id']);
124 124
         $where['is_gift_bag'] = 0;
125 125
         $where['is_used'] = 1;
126 126
         $where['product_type'] = 0;
@@ -128,7 +128,6 @@ class Merchant extends BaseController
128 128
         log::info("====={$params['mer_cate_id']}===");
129 129
         if($params['mer_cate_id']){
130 130
             $where['cate_id'] = $params['mer_cate_id'];
131
-            unset($where['mer_cate_id']);
132 131
         }
133 132
 
134 133
         return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));