This commit is contained in:
邹宗楠
2022-05-23 19:21:17 +08:00
parent b9f1fffa79
commit 36f6678da1

View File

@@ -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