From 4261fa7aa6c7f4130393fbf89079ac4007eae4e0 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 21 Oct 2025 13:45:47 +0800 Subject: [PATCH] no message --- src/Services/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' => '商品不存在或库存不足',