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++) {