Procházet zdrojové kódy

修复精彩生活分类

xialei před 1 rokem
rodič
revize
303cc6fca0
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      app/controller/api/store/merchant/Merchant.php

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

@@ -127,7 +127,8 @@ class Merchant extends BaseController
127
         $where['is_hide'] = 0;
127
         $where['is_hide'] = 0;
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']);
131
         }
132
         }
132
 
133
 
133
         return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));
134
         return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));