Commit 9cd55296 authored by 黄奎's avatar 黄奎

页面修改

parent 2dedfa4e
......@@ -740,11 +740,11 @@ namespace Edu.Module.Course
else if ((demodel.JoinType == OrderJoinTypeEnum.Normal || demodel.JoinType == OrderJoinTypeEnum.InsertClass) && demodel.OrderIdentify != 2)
{
//默认都是首次报名优惠
//HK 2022-02-08 修改
//decimal DiscountMoney = coursePrice * (courseModel.B2CRatio / 100);
//if (demodel.DiscountMoney != DiscountMoney * demodel.GuestNum)
//HK 2022 - 02 - 08修改
decimal DiscountMoney = coursePrice * (courseModel.B2CRatio / 100);
//if (demodel.DiscountMoney > DiscountMoney)
//{
// message = "优惠金额不正确";
// message = string.Format("优惠金额不正确,不能超过{0}元",DiscountMoney);
// return false;
//}
}
......@@ -784,16 +784,19 @@ namespace Edu.Module.Course
decimal dmoney = coursePrice * (courseModel.B2CRatio / 100) * NormalNum + coursePrice * (courseModel.B2CReNewRatio / 100) * RenewNum;
if (demodel.DiscountMoney != dmoney)
{
//message = "优惠金额不正确";
//return false;
message = "优惠金额不正确";
return false;
}
}
else if (demodel.OrderIdentify == 2 && demodel.OrderId > 0) {
//直接验证优惠金额
if (demodel.DiscountMoney != orderModel.DiscountMoney) {
//message = "优惠金额有误";
//return false;
}
decimal DiscountMoney = coursePrice * (courseModel.B2CRatio / 100);
//HK 2022-02-08修改
//if (demodel.DiscountMoney > DiscountMoney)
//{
// message = string.Format("优惠金额有误,不能超过 {0} 元.", DiscountMoney);
// return false;
//}
}
//获取课程优惠
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment