From 36f6678da1a5a43d369bc3d78474cb70efce5c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 23 May 2022 19:21:17 +0800 Subject: [PATCH] 1 --- business/partner/purchase/jx/localjx/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index 962fcc670..58639b41d 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -1006,12 +1006,12 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64 if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) { outJxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee) jxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee) - jxOrder.TotalPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee) } if err == nil { if jxOrder.OrderType == model.OrderTypeNormal { outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice + jxOrder.TotalPrice = jxOrder.OrderPrice + jxOrder.FreightPrice var ( tuserID string dicountCards []*model.DiscountCard