From ad847cec102ae3ca6e5280c4a326340a08339011 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 23 Nov 2023 17:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=82=E7=BA=A7=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/CloudWarehouse.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'];