From da34b85a615f9a90022265290d8d74a2b3cc09ed Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 8 Jun 2022 18:18:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/api/mobile/order/submit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/mobile/order/submit.go b/internal/api/mobile/order/submit.go index 2a8f455..fec07df 100755 --- a/internal/api/mobile/order/submit.go +++ b/internal/api/mobile/order/submit.go @@ -124,7 +124,7 @@ func SubmitOrder(c *gin.Context) { } // 仅考虑商品库存 - condition := v.Quantity > sku.Inventory + condition := orderInfo.OrderType != 2 // 批发不需要验证库存 //if orderInfo.OrderType == 2 { // condition = v.Quantity > sku.SaleInventory //}