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
531961f8
Commit
531961f8
authored
Jun 16, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d42f30bb
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 @
531961f8
...
@@ -287,6 +287,7 @@ namespace Mall.Module.User
...
@@ -287,6 +287,7 @@ namespace Mall.Module.User
//更新订单信息
//更新订单信息
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_Order_Extend
.
OrderStatus
),
Common
.
Enum
.
Goods
.
OrderStatusEnum
.
WaitSendGoods
},
{
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
.
PaymentTime
),
Time_End
},
{
nameof
(
RB_Goods_Order_Extend
.
PaymentWay
),
Common
.
Enum
.
Goods
.
OrderPaymentTypeEnum
.
OnlinePayment
}
{
nameof
(
RB_Goods_Order_Extend
.
PaymentWay
),
Common
.
Enum
.
Goods
.
OrderPaymentTypeEnum
.
OnlinePayment
}
};
};
...
...
Mall.WebApi/App_Code/PayUtil.cs
View file @
531961f8
...
@@ -324,6 +324,7 @@ namespace Mall.WebApi.App_Code
...
@@ -324,6 +324,7 @@ namespace Mall.WebApi.App_Code
packageReq
.
SetParameter
(
"refund_fee"
,
param
.
RefundFee
.
Value
.
ToString
(
System
.
Globalization
.
CultureInfo
.
InvariantCulture
));
packageReq
.
SetParameter
(
"refund_fee"
,
param
.
RefundFee
.
Value
.
ToString
(
System
.
Globalization
.
CultureInfo
.
InvariantCulture
));
packageReq
.
SetParameter
(
"sign"
,
packageReq
.
CreateMd5Sign
(
_accessor
,
model
.
WeChatApiSecret
));
packageReq
.
SetParameter
(
"sign"
,
packageReq
.
CreateMd5Sign
(
_accessor
,
model
.
WeChatApiSecret
));
var
reqXml
=
packageReq
.
ParseXml
();
var
reqXml
=
packageReq
.
ParseXml
();
LogHelper
.
Write
(
reqXml
);
LogHelper
.
WriteInfo
(
"退款正式路径"
+
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"App_Data/Certs/WeChatApp/"
+
model
.
WeChatPayCertificateUrl
));
LogHelper
.
WriteInfo
(
"退款正式路径"
+
Path
.
Combine
(
AppDomain
.
CurrentDomain
.
BaseDirectory
,
"App_Data/Certs/WeChatApp/"
+
model
.
WeChatPayCertificateUrl
));
var
result
=
Common
.
Pay
.
WeChatPat
.
HttpHelper
.
Post
(
new
HttpParam
()
var
result
=
Common
.
Pay
.
WeChatPat
.
HttpHelper
.
Post
(
new
HttpParam
()
{
{
...
...
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
531961f8
...
@@ -480,12 +480,15 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -480,12 +480,15 @@ namespace Mall.WebApi.Controllers.MallBase
if
(
OrderId
<=
0
)
{
if
(
OrderId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
return
ApiResult
.
ParamIsNull
();
}
}
if
(
Type
==
2
)
{
//if (Type == 2) {
if
(
string
.
IsNullOrEmpty
(
Remark
))
{
// if (string.IsNullOrEmpty(Remark)) {
return
ApiResult
.
ParamIsNull
(
"请输入取消申请备注"
);
// return ApiResult.ParamIsNull("请输入取消申请备注");
}
// }
//}
if
(
string
.
IsNullOrEmpty
(
Remark
))
{
Remark
=
"无"
;
}
}
bool
flag
=
orderModule
.
CancelAppletGoodsOrderInfo
(
OrderId
,
Type
,
Remark
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
bool
flag
=
orderModule
.
CancelAppletGoodsOrderInfo
(
OrderId
,
Type
,
Remark
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
}
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
531961f8
...
@@ -677,8 +677,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -677,8 +677,8 @@ namespace Mall.WebApi.Controllers.MallBase
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
{
{
TotalFee
=
Convert
.
ToInt32
((
omodel
.
Income
??
0
)
*
100
),
TotalFee
=
Convert
.
ToInt32
((
omodel
.
Income
??
0
)
*
100
),
RefundFee
=
(
omodel
.
Income
??
0
),
RefundFee
=
(
omodel
.
Income
??
0
)
*
100
,
OrderNumber
=
omodel
.
Merchants
No
,
OrderNumber
=
omodel
.
Order
No
,
RefundNumber
=
RefundOrderNo
RefundNumber
=
RefundOrderNo
};
};
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
...
@@ -1472,10 +1472,11 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1472,10 +1472,11 @@ namespace Mall.WebApi.Controllers.MallBase
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
{
{
TotalFee
=
Convert
.
ToInt32
(
Refund
*
100
),
TotalFee
=
Convert
.
ToInt32
(
Refund
*
100
),
RefundFee
=
Refund
,
RefundFee
=
Refund
*
100
,
OrderNumber
=
orderModel
.
MerchantsNo
,
OrderNumber
=
orderModel
.
MerchantsNo
,
RefundNumber
=
RefundOrderNo
RefundNumber
=
RefundOrderNo
};
};
LogHelper
.
Write
(
JsonConvert
.
SerializeObject
(
pram
));
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
var
Robj
=
new
App_Code
.
PayUtil
().
Refund
(
pram
,
mallModel
,
_accessor
);
if
(
Robj
.
IsSuccess
)
if
(
Robj
.
IsSuccess
)
{
{
...
@@ -1487,7 +1488,11 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1487,7 +1488,11 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
return
ApiResult
.
Success
(
""
);
return
ApiResult
.
Success
(
""
);
}
}
return
ApiResult
.
Failed
();
else
{
LogHelper
.
Write
(
JsonConvert
.
SerializeObject
(
Robj
));
return
ApiResult
.
Failed
();
}
}
}
else
{
else
{
bool
flag
=
orderModule
.
SetOrderAfterSaleForRefunds
(
ReOrderId
,
Refund
,
""
,
req
.
TenantId
,
req
.
MallBaseId
);
bool
flag
=
orderModule
.
SetOrderAfterSaleForRefunds
(
ReOrderId
,
Refund
,
""
,
req
.
TenantId
,
req
.
MallBaseId
);
...
@@ -1556,7 +1561,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1556,7 +1561,7 @@ namespace Mall.WebApi.Controllers.MallBase
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
var
pram
=
new
Common
.
Pay
.
WeChatPat
.
PayParam
()
{
{
TotalFee
=
Convert
.
ToInt32
(
Refund
*
100
),
TotalFee
=
Convert
.
ToInt32
(
Refund
*
100
),
RefundFee
=
Refund
,
RefundFee
=
Refund
*
100
,
OrderNumber
=
orderModel
.
MerchantsNo
,
OrderNumber
=
orderModel
.
MerchantsNo
,
RefundNumber
=
RefundOrderNo
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