From 151ba60e0062a644fab5ae7fead8d1c48dfc96dc Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Thu, 8 Jun 2023 11:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=95=86=E5=93=81=E4=BB=85?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=95=87=E8=A1=97=E5=BA=97=E9=93=BA=E5=95=86?= =?UTF-8?q?=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreSpu.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index 0b838992..b9ba36d5 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -157,6 +157,8 @@ class StoreSpu extends BaseController } $where['product_type'] = 0; $where['is_stock'] = 1; + $where['mer_ids'] = Merchant::getInstance()->where('type_id', Merchant::TypeStore) + ->where(['status' => 1, 'mer_state' => 1, 'is_del' => 0])->column('mer_id'); $data = $this->repository->getApiSearch($where, $page, $limit, $this->userInfo); return app('json')->success($data); }