Explorar o código

修复精彩生活分类

xialei hai 1 ano
pai
achega
303cc6fca0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 127
         $where['is_hide'] = 0;
128 128
         log::info("====={$params['mer_cate_id']}===");
129 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 134
         return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));