Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
19f71159
Commit
19f71159
authored
Jun 27, 2022
by
zhuxiao
Browse files
修复微信退款通知 应检验退款金额问题
parent
65500b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayChannelRefundNoticeService.java
View file @
19f71159
...
...
@@ -207,9 +207,9 @@ public class WxpayChannelRefundNoticeService extends AbstractChannelRefundNotice
try
{
// 核对金额
Integer
total_fee
=
result
.
getAmount
().
get
Total
();
// 退款金额
long
wxPayAmt
=
new
BigDecimal
(
total_fee
).
longValue
();
long
dbPayAmt
=
refundOrder
.
getRefundAmount
()
.
longValue
()
;
String
refundAmt
=
result
.
getAmount
().
get
Refund
();
// 退款金额
long
wxPayAmt
=
new
BigDecimal
(
refundAmt
).
longValue
();
long
dbPayAmt
=
refundOrder
.
getRefundAmount
();
if
(
dbPayAmt
!=
wxPayAmt
)
{
throw
ResponseException
.
buildText
(
"AMOUNT ERROR"
);
}
...
...
Write
Preview
Supports
Markdown
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