|
@@ -168,8 +168,11 @@ class Merchant extends BaseController
|
|
168
|
if($params['pageSize']!=''){
|
168
|
if($params['pageSize']!=''){
|
|
169
|
$limit=$params['pageSize'];
|
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
|
$where['is_gift_bag'] = 0;
|
176
|
$where['is_gift_bag'] = 0;
|
|
174
|
$where['is_used'] = 1;
|
177
|
$where['is_used'] = 1;
|
|
175
|
$where['product_type'] = 0;
|
178
|
$where['product_type'] = 0;
|