no message
This commit is contained in:
parent
30865e6157
commit
4261fa7aa6
@ -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([
|
return $response->withJson([
|
||||||
'ret' => 0,
|
'ret' => 0,
|
||||||
'msg' => '商品不存在或库存不足',
|
'msg' => '商品不存在或库存不足',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user