hefei hai 1 ano
pai
achega
4a4cfb866e
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      app/controller/api/store/merchant/Merchant.php

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

@@ -168,8 +168,11 @@ class Merchant extends BaseController
168 168
         if($params['pageSize']!=''){
169 169
             $limit=$params['pageSize'];
170 170
         }
171
-        $category_id = $params['category_id']?:32;
172
-        $mer_list = Db::name('merchant')->where(['category_id' => $category_id,'status' => 1,'is_del' => 0])->page($page)->limit($limit)->select();
171
+        $category_id = $params['category_id']?:0;
172
+        $where['is_del'] = 0;
173
+        $where['status'] = 1;
174
+        $category_id && $where['category_id'] = $category_id;
175
+        $mer_list = Db::name('merchant')->where($where)->page($page)->limit(100)->select();
173 176
         $where['is_gift_bag'] = 0;
174 177
         $where['is_used'] = 1;
175 178
         $where['product_type'] = 0;