会员
This commit is contained in:
@@ -916,7 +916,10 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
if IsDeliverySelf {
|
||||
outJxOrder.FreightPrice = 0
|
||||
}
|
||||
|
||||
}
|
||||
if err == nil {
|
||||
if jxOrder.OrderType == model.OrderTypeNormal {
|
||||
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
||||
// 判断用户是否是会员
|
||||
var (
|
||||
tuserID string
|
||||
@@ -935,15 +938,13 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
outJxOrder.OrderPrice = outJxOrder.OrderPrice * int64(discountCard.PicePercentage) / 100
|
||||
}
|
||||
}
|
||||
}
|
||||
if err == nil {
|
||||
if jxOrder.OrderType == model.OrderTypeNormal {
|
||||
outJxOrder.ActualPayPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
||||
} else if jxOrder.OrderType == model.OrderTypeDefendPrice {
|
||||
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
|
||||
|
||||
}
|
||||
} else {
|
||||
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice
|
||||
outJxOrder.ActualPayPrice = outJxOrder.TotalPrice
|
||||
if jxOrder.OrderType == model.OrderTypeDefendPrice {
|
||||
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
|
||||
}
|
||||
if jxOrder.UserID != "" {
|
||||
outJxOrder.UserID = jxOrder.UserID
|
||||
|
||||
Reference in New Issue
Block a user