修改获取商品数据
This commit is contained in:
parent
5578850766
commit
765710b85a
@ -49,7 +49,7 @@ class getProductCommand extends HyperfCommand
|
|||||||
$this->handleData($item);
|
$this->handleData($item);
|
||||||
}
|
}
|
||||||
|
|
||||||
$count = ceil($result['count'] / $page * $page_size);
|
$count = ceil($result['count'] / ($page * $page_size));
|
||||||
|
|
||||||
if ($result['count'] > $page * $page_size) {
|
if ($result['count'] > $page * $page_size) {
|
||||||
for ($i = 2; $i < $count; $i++) {
|
for ($i = 2; $i < $count; $i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user