优惠券问题修复
This commit is contained in:
parent
35251458c6
commit
7e018a1e68
|
|
@ -98,9 +98,9 @@ func (p DefParty) orderCreatePreCheck() web_iris.Party {
|
||||||
//此处计算享受会员折扣及优惠券折扣的价格
|
//此处计算享受会员折扣及优惠券折扣的价格
|
||||||
var discountAmount = int(utils.RoundToOneDecimalPlace(float64(goodsNotDiscountAmount)*(discount/100.0))*10) + goodsDiscountAmount
|
var discountAmount = int(utils.RoundToOneDecimalPlace(float64(goodsNotDiscountAmount)*(discount/100.0))*10) + goodsDiscountAmount
|
||||||
if userInfo.Amount < discountAmount {
|
if userInfo.Amount < discountAmount {
|
||||||
orderCreatePreCheckResponse.HasAlert = true
|
//orderCreatePreCheckResponse.HasAlert = false
|
||||||
orderCreatePreCheckResponse.AlertMsg = "您的会员余额不够,需要进行线下支付,当前订单将不享受会员折扣优惠价格"
|
//orderCreatePreCheckResponse.AlertMsg = "您的会员余额不够,需要进行线下支付,当前订单将不享受会员折扣优惠价格"
|
||||||
orderCreatePreCheckResponse.PayType = 0
|
//orderCreatePreCheckResponse.PayType = 0
|
||||||
} else {
|
} else {
|
||||||
orderCreatePreCheckResponse.PayType = 1
|
orderCreatePreCheckResponse.PayType = 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue