no message

This commit is contained in:
hellcat 2025-10-21 13:45:47 +08:00
parent 30865e6157
commit 4261fa7aa6

View File

@ -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' => '商品不存在或库存不足',