修改获取商品数据

This commit is contained in:
wucongxing 2023-05-22 10:14:06 +08:00
parent 5578850766
commit 765710b85a

View File

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