Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ee363c4c
authored
Sep 30, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复小程序赛事下单用券,退款失败问题
parent
2c1ae585
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
src/main/java/com/ctrip/fun/golf/service/basic/VoucherService.java
src/main/java/com/ctrip/fun/golf/service/payment/AbstractPaymentService.java
src/main/java/com/ctrip/fun/golf/service/basic/VoucherService.java
View file @
ee363c4c
...
...
@@ -1102,6 +1102,7 @@ public class VoucherService {
voucher
.
setDescription
(
voucherRule
.
getDescription
());
voucher
.
setShared
(
voucherRule
.
getShared
());
voucher
.
setUserLimit
(
voucherRule
.
getUserLimit
());
voucher
.
setCreatedTime
(
new
Date
());
return
voucher
;
}
...
...
src/main/java/com/ctrip/fun/golf/service/payment/AbstractPaymentService.java
View file @
ee363c4c
...
...
@@ -179,7 +179,7 @@ public abstract class AbstractPaymentService<T extends AbstractOrder> extends Co
if
(
"MP"
.
equals
(
order
.
getPlatform
())){
try
{
logger
.
error
(
"start----------------------------------------------refound"
);
WeiXinAtcion
.
wechatRefund
(
order
.
getOrderNo
()+
""
,
order
.
getPrePayAmount
().
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(),
paymentOperateBean
.
getAmount
().
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(),
weiXinRefoundNotifyUrl
);
WeiXinAtcion
.
wechatRefund
(
order
.
getOrderNo
()+
""
,
order
.
getPrePayAmount
().
subtract
(
order
.
getVoucherAmount
()).
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(),
paymentOperateBean
.
getAmount
().
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(),
weiXinRefoundNotifyUrl
);
PayOrderOperateResponseBean
payBean
=
new
PayOrderOperateResponseBean
();
payBean
.
setResultCode
(
CorePaymentService
.
SUCCESS
);
result
.
setBody
(
payBean
);
...
...
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