优惠券问题修复

This commit is contained in:
yiyan 2025-01-09 22:43:19 +08:00
parent 35251458c6
commit 7e018a1e68
1 changed files with 3 additions and 3 deletions

View File

@ -98,9 +98,9 @@ func (p DefParty) orderCreatePreCheck() web_iris.Party {
//此处计算享受会员折扣及优惠券折扣的价格
var discountAmount = int(utils.RoundToOneDecimalPlace(float64(goodsNotDiscountAmount)*(discount/100.0))*10) + goodsDiscountAmount
if userInfo.Amount < discountAmount {
orderCreatePreCheckResponse.HasAlert = true
orderCreatePreCheckResponse.AlertMsg = "您的会员余额不够,需要进行线下支付,当前订单将不享受会员折扣优惠价格"
orderCreatePreCheckResponse.PayType = 0
//orderCreatePreCheckResponse.HasAlert = false
//orderCreatePreCheckResponse.AlertMsg = "您的会员余额不够,需要进行线下支付,当前订单将不享受会员折扣优惠价格"
//orderCreatePreCheckResponse.PayType = 0
} else {
orderCreatePreCheckResponse.PayType = 1
}