Compare commits

...

2 Commits

Author SHA1 Message Date
haomingming
ef2ae67a37 Merge branch 'dev'
Some checks are pending
Build Docker / build (push) Waiting to run
2025-12-23 09:45:29 +08:00
haomingming
c8da9bcd93 更新库存时候,只更新上架商品
Some checks are pending
Build Docker / build (push) Waiting to run
2025-12-23 09:44:33 +08:00

View File

@ -37,6 +37,7 @@ class getProductStockCommand extends HyperfCommand
try {
// 获取商品
$params = array();
$params['product_status'] = 1;
$product = Product::getPage($params,['*'],1,10);
if (empty($product['data'])){
$this->line("商品库存更新成功,无可更新库存商品");