diff --git a/src/Services/Payment.php b/src/Services/Payment.php index 082d7dff8..db4d48c01 100755 --- a/src/Services/Payment.php +++ b/src/Services/Payment.php @@ -239,7 +239,7 @@ final class Payment ]); } - if ($product->sale_count >= $product->stock) { + if ($product->stock > -1 && $product->sale_count >= $product->stock) { return $response->withJson([ 'ret' => 0, 'msg' => '商品不存在或库存不足',