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
Show 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
...
@@ -4915,6 +4915,7 @@ namespace Mall.Module.Product
}
}
decimal TotalMoney = 0;
decimal TotalMoney = 0;
decimal TotalDepositMoney = 0;//总定金
string GoodsIds = "";
string GoodsIds = "";
int TotalIntegralNumber = 0;//总使用积分
int TotalIntegralNumber = 0;//总使用积分
decimal TotalIntegralMoney = 0;//总使用积分抵扣金额
decimal TotalIntegralMoney = 0;//总使用积分抵扣金额
...
@@ -5068,6 +5069,7 @@ namespace Mall.Module.Product
...
@@ -5068,6 +5069,7 @@ namespace Mall.Module.Product
foreach (var item in demodel.DetailList)
foreach (var item in demodel.DetailList)
{
{
var gmodel = gList.Where(x => x.Id == item.GoodsId).FirstOrDefault();
var gmodel = gList.Where(x => x.Id == item.GoodsId).FirstOrDefault();
if (gmodel == null || gmodel.GoodsStatus != 1)
if (gmodel == null || gmodel.GoodsStatus != 1)
{
{
...
@@ -5079,6 +5081,7 @@ namespace Mall.Module.Product
...
@@ -5079,6 +5081,7 @@ namespace Mall.Module.Product
message = "有非线下服务类商品";
message = "有非线下服务类商品";
return false;
return false;
}
}
TotalDepositMoney += gmodel.DepositMoney*(item?.Number??0);
var categoryList = clist.Where(x => x.GoodsId == item.GoodsId).ToList();
var categoryList = clist.Where(x => x.GoodsId == item.GoodsId).ToList();
item.CommissionPrice = gmodel.Commission;// 粉象 返佣金额
item.CommissionPrice = gmodel.Commission;// 粉象 返佣金额
...
@@ -5555,12 +5558,28 @@ namespace Mall.Module.Product
...
@@ -5555,12 +5558,28 @@ namespace Mall.Module.Product
return false;
return false;
}
}
if (demodel.PaymentWay == OrderPaymentTypeEnum.OnlinePayment)
{
//验证总额
//验证总额
if (demodel.Income != (TotalMoney - EducationMoney))
if (demodel.Income != (TotalMoney - EducationMoney))
{
{
message = "订单合计金额不正确";
message = "订单合计金额不正确";
return false;
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;
demodel.PreferPrice = TotalMoney + CouponsMoney;
#region 手续费计算
#region 手续费计算
...
...
Mall.WebApi/Controllers/BaseController.cs
View file @
3518c518
...
@@ -74,8 +74,8 @@ namespace Mall.WebApi.Controllers
...
@@ -74,8 +74,8 @@ namespace Mall.WebApi.Controllers
{
{
get
{
get
{
var
parm
=
this
.
RequestParm
;
var
parm
=
this
.
RequestParm
;
//
AppletUserInfo userInfo = UserReidsCache.GetAppletUserLoginInfo(parm.uid);
AppletUserInfo
userInfo
=
UserReidsCache
.
GetAppletUserLoginInfo
(
parm
.
uid
);
AppletUserInfo
userInfo
=
UserReidsCache
.
GetAppletUserLoginInfo
(
"112603"
);
//
AppletUserInfo userInfo = UserReidsCache.GetAppletUserLoginInfo("112603");
return
userInfo
;
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