diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index 34ea6d86..14b529d6 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -60,7 +60,9 @@ class CloudWarehouse extends BaseController return app('json')->success(['count' => 0, 'list' => []]); } $count = Db::name('cloud_product')->where('street_code', $street_code)->where('status', 1)->count(); - + if (!empty($params['category_id'])) { + $where['cate_id'] = $params['category_id']; + } $products = $this->spuRepository->getApiSearch($where,$page,10, false,true); if($products['list']){ $list=$products['list'];