Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
3518c518
Commit
3518c518
authored
Nov 06, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f6c58a4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+23
-4
BaseController.cs
Mall.WebApi/Controllers/BaseController.cs
+2
-2
No files found.
Mall.Module.Product/OrderModule.cs
View file @
3518c518
...
...
@@ -4915,6 +4915,7 @@ namespace Mall.Module.Product
}
decimal
TotalMoney
=
0
;
decimal
TotalDepositMoney
=
0
;
//总定金
string
GoodsIds
=
""
;
int
TotalIntegralNumber
=
0
;
//总使用积分
decimal
TotalIntegralMoney
=
0
;
//总使用积分抵扣金额
...
...
@@ -5068,6 +5069,7 @@ namespace Mall.Module.Product
foreach
(
var
item
in
demodel
.
DetailList
)
{
var
gmodel
=
gList
.
Where
(
x
=>
x
.
Id
==
item
.
GoodsId
).
FirstOrDefault
();
if
(
gmodel
==
null
||
gmodel
.
GoodsStatus
!=
1
)
{
...
...
@@ -5079,6 +5081,7 @@ namespace Mall.Module.Product
message
=
"有非线下服务类商品"
;
return
false
;
}
TotalDepositMoney
+=
gmodel
.
DepositMoney
*(
item
?.
Number
??
0
);
var
categoryList
=
clist
.
Where
(
x
=>
x
.
GoodsId
==
item
.
GoodsId
).
ToList
();
item
.
CommissionPrice
=
gmodel
.
Commission
;
// 粉象 返佣金额
...
...
@@ -5555,11 +5558,27 @@ namespace Mall.Module.Product
return
false
;
}
//验证总额
if
(
demodel
.
Income
!=
(
TotalMoney
-
EducationMoney
))
if
(
demodel
.
PaymentWay
==
OrderPaymentTypeEnum
.
OnlinePayment
)
{
message
=
"订单合计金额不正确"
;
return
false
;
//验证总额
if
(
demodel
.
Income
!=
(
TotalMoney
-
EducationMoney
))
{
message
=
"订单合计金额不正确"
;
return
false
;
}
}
if
(
demodel
.
PaymentWay
==
OrderPaymentTypeEnum
.
PayDeposit
)
{
//验证总额
if
(
demodel
.
Income
!=
(
TotalDepositMoney
-
EducationMoney
))
{
message
=
"订单合计金额不正确"
;
return
false
;
}
}
if
(
demodel
.
PaymentWay
==
OrderPaymentTypeEnum
.
OfflinePay
)
{
demodel
.
OrderStatus
=
OrderStatusEnum
.
WaitReceiving
;
}
demodel
.
PreferPrice
=
TotalMoney
+
CouponsMoney
;
...
...
Mall.WebApi/Controllers/BaseController.cs
View file @
3518c518
...
...
@@ -74,8 +74,8 @@ namespace Mall.WebApi.Controllers
{
get
{
var
parm
=
this
.
RequestParm
;
//
AppletUserInfo userInfo = UserReidsCache.GetAppletUserLoginInfo(parm.uid);
AppletUserInfo
userInfo
=
UserReidsCache
.
GetAppletUserLoginInfo
(
"112603"
);
AppletUserInfo
userInfo
=
UserReidsCache
.
GetAppletUserLoginInfo
(
parm
.
uid
);
//
AppletUserInfo userInfo = UserReidsCache.GetAppletUserLoginInfo("112603");
return
userInfo
;
}
}
...
...
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