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