|
@@ -228,10 +228,10 @@ class Merchant extends BaseController
|
|
228
|
$hasProductMerIdList = array_column($hasProductMerIdList->toArray(), 'mer_id');
|
228
|
$hasProductMerIdList = array_column($hasProductMerIdList->toArray(), 'mer_id');
|
|
229
|
}
|
229
|
}
|
|
230
|
$query = Db::name('merchant')->where($where);
|
230
|
$query = Db::name('merchant')->where($where);
|
|
231
|
- return app('json')->success(['list'=>$query]);
|
|
|
|
232
|
-// if (!empty($hasProductMerIdList) && is_array($hasProductMerIdList)) {
|
|
|
|
233
|
-// $query->whereIn('mer_id', $hasProductMerIdList);
|
|
|
|
234
|
-// }
|
|
|
|
|
|
231
|
+ if (!empty($hasProductMerIdList) && is_array($hasProductMerIdList)) {
|
|
|
|
232
|
+ $query->whereIn('mer_id', $hasProductMerIdList);
|
|
|
|
233
|
+ }
|
|
|
|
234
|
+ return app('json')->success(['list'=>$hasProductMerIdList]);
|
|
235
|
// $mer_list = $query->page($page)->limit($limit)->select();
|
235
|
// $mer_list = $query->page($page)->limit($limit)->select();
|
|
236
|
// $where['is_gift_bag'] = 0;
|
236
|
// $where['is_gift_bag'] = 0;
|
|
237
|
// $where['is_used'] = 1;
|
237
|
// $where['is_used'] = 1;
|