|
|
@@ -235,7 +235,7 @@ class OrderGoodsClass extends BaseClass
|
|
|
|
|
|
$currentGoods = $goodsInfo[$goodsId] ?? [];
|
|
|
if (!empty($currentGoods)) {
|
|
|
- //如果定义库存充值的商品,并且库存低于99时,自动增加库存到999
|
|
|
+ //如果定义库存充值的商品,并且库存低于99时,自动增加库存到999。
|
|
|
if (isset($currentGoods['stockSet']) && $currentGoods['stockSet'] == 0) {
|
|
|
if ($newStock < 99) {
|
|
|
$addNum = bcsub(999, $newStock);
|