diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index d65b5673d..c492c2105 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -385,7 +385,7 @@ class BeforehandOrderLogic extends BaseLogic } foreach ($storege_arr as $key => $value) { if ($value['is_verify']==1 && $v['product_id'] == $value['product_id']) { - if ($v['cart_num'] < $value['nums']) { + if (($v['cart_num'] < $value['nums'])==false) { $store_name=StoreProduct::where('id', $v['product_id'])->withTrashed()->value('store_name'); throw new BusinessException('商品:'.$store_name.'已开启强制库存校验,库存不足,库存数量' . $value['nums'].',需求数量:' . $v['cart_num']); }