Просмотр исходного кода

小程序app-商贸区-检测问题

xupuyuan месяцев назад: 8
Родитель
Сommit
b01810b2cf
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/controller/api/store/merchant/Merchant.php

+ 4 - 4
app/controller/api/store/merchant/Merchant.php

@@ -228,10 +228,10 @@ class Merchant extends BaseController
228 228
             $hasProductMerIdList = array_column($hasProductMerIdList->toArray(), 'mer_id');
229 229
         }
230 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 235
 //        $mer_list = $query->page($page)->limit($limit)->select();
236 236
 //        $where['is_gift_bag'] = 0;
237 237
 //        $where['is_used'] = 1;