修改更新商品库存
This commit is contained in:
@@ -55,7 +55,7 @@ class getProductStockCommand extends HyperfCommand
|
||||
for ($i = 2; $i <= $product['last_page']; $i++) {
|
||||
// 获取商品
|
||||
$params = array();
|
||||
$product = Product::getPage($params,['*'],1,10);
|
||||
$product = Product::getPage($params,['*'],$i,10);
|
||||
if (empty($product['data'])){
|
||||
$this->line("商品库存更新成功,无可更新库存商品");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user