From 4ca51689a1c043963b21d143f5562c22ab6f4f3a Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 9 Oct 2023 11:22:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/CloudWarehouse.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controller/api/store/product/CloudWarehouse.php b/app/controller/api/store/product/CloudWarehouse.php index fd96cca5..d29afd17 100644 --- a/app/controller/api/store/product/CloudWarehouse.php +++ b/app/controller/api/store/product/CloudWarehouse.php @@ -48,7 +48,7 @@ class CloudWarehouse extends BaseController { // 除了市级供应链都可以查询 $typeIdArray = Db::name('MerchantType')->whereNotIn('type_code', Merchant::TypeCode['TypeSupplyChain'])->column('mer_type_id'); - $params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword']); + $params = $this->request->params(['category_id', 'street_code', 'order', ['product_type', 0], 'keyword','page_num']); $search = [ 'street_id' => $params['street_code'], 'type_id' => $typeIdArray ?? [], @@ -61,6 +61,9 @@ class CloudWarehouse extends BaseController } $merchantIds = $this->merchantDao->search($search)->column('mer_id'); [$page, $limit] = $this->getPage(); + if(isset($params['page_num'])&&$params['page_num']!=''){ + $page=$params['page_num']; + } if (empty($merchantIds)) { return app('json')->success(['count' => 0, 'list' => []]); }