1
This commit is contained in:
@@ -1006,12 +1006,12 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
|||||||
if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) {
|
if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) {
|
||||||
outJxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
outJxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
||||||
jxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
jxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
||||||
jxOrder.TotalPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if jxOrder.OrderType == model.OrderTypeNormal {
|
if jxOrder.OrderType == model.OrderTypeNormal {
|
||||||
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
||||||
|
jxOrder.TotalPrice = jxOrder.OrderPrice + jxOrder.FreightPrice
|
||||||
var (
|
var (
|
||||||
tuserID string
|
tuserID string
|
||||||
dicountCards []*model.DiscountCard
|
dicountCards []*model.DiscountCard
|
||||||
|
|||||||
Reference in New Issue
Block a user