feat: #10000 订单库存同步错误修改

This commit is contained in:
赵世界 2022-08-31 00:22:06 +08:00
parent f24c62fc8c
commit 161afade3d

View File

@ -48,9 +48,6 @@ class BusinessOrdersUpdate
}
if ($this->goodsSku) {
$this->goodsSku->stock += $this->num;
if ($this->goodsSku->stock <= 0) {
$this->goodsSku->status = 0;
}
$this->goodsSku->save();
}
}