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); }