Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
9cd55296
Commit
9cd55296
authored
Feb 08, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2dedfa4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+13
-10
No files found.
Edu.Module.Course/OrderModule.cs
View file @
9cd55296
...
...
@@ -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;
//}
}
//获取课程优惠
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment