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
0112da95
Commit
0112da95
authored
Jun 16, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
140efc0f
bfe3e56d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+1
-0
PayUtil.cs
Mall.WebApi/App_Code/PayUtil.cs
+1
-0
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+8
-5
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+10
-5
No files found.
Mall.Module.User/UserCommonModule.cs
View file @
0112da95
...
...
@@ -287,6 +287,7 @@ namespace Mall.Module.User
//更新订单信息
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_Order_Extend
.
OrderStatus
),
Common
.
Enum
.
Goods
.
OrderStatusEnum
.
WaitSendGoods
},
{
nameof
(
RB_Goods_Order_Extend
.
MerchantsNo
),
Out_Trade_No
},
{
nameof
(
RB_Goods_Order_Extend
.
PaymentTime
),
Time_End
},
{
nameof
(
RB_Goods_Order_Extend
.
PaymentWay
),
Common
.
Enum
.
Goods
.
OrderPaymentTypeEnum
.
OnlinePayment
}
};
...
...
Mall.WebApi/App_Code/PayUtil.cs
View file @
0112da95
...
...
@@ -324,6 +324,7 @@ namespace Mall.WebApi.App_Code
packageReq
.
SetParameter
(
"refund_fee"
,
param
.
RefundFee
.
Value
.
ToString
(
System
.
Globalization
.
CultureInfo
.
InvariantCulture
));
packageReq
.
SetParameter
(
"sign"
,
packageReq
.
CreateMd5Sign
(
_accessor
,
model
.
WeChatApiSecret
));
var
reqXml
=
packageReq
.
ParseXml
();
LogHelper
.
Write
(
reqXml
);
LogHelper
.
WriteInfo
(
"退款正式路径"
+
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"App_Data/Certs/WeChatApp/"
+
model
.
WeChatPayCertificateUrl
));
if
(!
System
.
IO
.
File
.
Exists
(
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"App_Data/Certs/WeChatApp/"
+
model
.
WeChatPayCertificateUrl
)))
{
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
0112da95
...
...
@@ -480,12 +480,15 @@ namespace Mall.WebApi.Controllers.MallBase
if
(
OrderId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
if
(
Type
==
2
)
{
if
(
string
.
IsNullOrEmpty
(
Remark
))
{
return
ApiResult
.
ParamIsNull
(
"请输入取消申请备注"
);
}
//if (Type == 2) {
// if (string.IsNullOrEmpty(Remark)) {
// return ApiResult.ParamIsNull("请输入取消申请备注");
// }
//}
if
(
string
.
IsNullOrEmpty
(
Remark
))
{
Remark
=
"无"
;
}
bool
flag
=
orderModule
.
CancelAppletGoodsOrderInfo
(
OrderId
,
Type
,
Remark
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
0112da95
...
...
@@ -677,8 +677,8 @@ namespace Mall.WebApi.Controllers.MallBase
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
{
TotalFee
=
Convert
.
ToInt32
((
omodel
.
Income
??
0
)
*
100
),
RefundFee
=
(
omodel
.
Income
??
0
),
OrderNumber
=
omodel
.
Merchants
No
,
RefundFee
=
(
omodel
.
Income
??
0
)
*
100
,
OrderNumber
=
omodel
.
Order
No
,
RefundNumber
=
RefundOrderNo
};
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
...
...
@@ -1472,10 +1472,11 @@ namespace Mall.WebApi.Controllers.MallBase
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
{
TotalFee
=
Convert
.
ToInt32
(
Refund
*
100
),
RefundFee
=
Refund
,
RefundFee
=
Refund
*
100
,
OrderNumber
=
orderModel
.
MerchantsNo
,
RefundNumber
=
RefundOrderNo
};
LogHelper
.
Write
(
JsonConvert
.
SerializeObject
(
pram
));
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
if
(
Robj
.
IsSuccess
)
{
...
...
@@ -1487,7 +1488,11 @@ namespace Mall.WebApi.Controllers.MallBase
}
return
ApiResult
.
Success
(
""
);
}
return
ApiResult
.
Failed
();
else
{
LogHelper
.
Write
(
JsonConvert
.
SerializeObject
(
Robj
));
return
ApiResult
.
Failed
();
}
}
else
{
bool
flag
=
orderModule
.
SetOrderAfterSaleForRefunds
(
ReOrderId
,
Refund
,
""
,
req
.
TenantId
,
req
.
MallBaseId
);
...
...
@@ -1556,7 +1561,7 @@ namespace Mall.WebApi.Controllers.MallBase
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
{
TotalFee
=
Convert
.
ToInt32
(
Refund
*
100
),
RefundFee
=
Refund
,
RefundFee
=
Refund
*
100
,
OrderNumber
=
orderModel
.
MerchantsNo
,
RefundNumber
=
RefundOrderNo
};
...
...
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