xialei 1 rok temu
rodzic
commit
162682435b
1 zmienionych plików z 1 dodań i 2 usunięć
  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
         if($params['pageSize']!=''){
120
         if($params['pageSize']!=''){
121
             $limit=$params['pageSize'];
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
         $where['is_gift_bag'] = 0;
124
         $where['is_gift_bag'] = 0;
125
         $where['is_used'] = 1;
125
         $where['is_used'] = 1;
126
         $where['product_type'] = 0;
126
         $where['product_type'] = 0;
@@ -128,7 +128,6 @@ class Merchant extends BaseController
128
         log::info("====={$params['mer_cate_id']}===");
128
         log::info("====={$params['mer_cate_id']}===");
129
         if($params['mer_cate_id']){
129
         if($params['mer_cate_id']){
130
             $where['cate_id'] = $params['mer_cate_id'];
130
             $where['cate_id'] = $params['mer_cate_id'];
131
-            unset($where['mer_cate_id']);
132
         }
131
         }
133
 
132
 
134
         return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));
133
         return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));