From 765710b85adb44f5f27fdcf09fb8121eda07574c Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 22 May 2023 10:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/getProductCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Command/getProductCommand.php b/app/Command/getProductCommand.php index edba3c4..e303f7c 100644 --- a/app/Command/getProductCommand.php +++ b/app/Command/getProductCommand.php @@ -49,7 +49,7 @@ class getProductCommand extends HyperfCommand $this->handleData($item); } - $count = ceil($result['count'] / $page * $page_size); + $count = ceil($result['count'] / ($page * $page_size)); if ($result['count'] > $page * $page_size) { for ($i = 2; $i < $count; $i++) {