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) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user