Commit 19f71159 authored by zhuxiao's avatar zhuxiao
Browse files

修复微信退款通知 应检验退款金额问题

parent 65500b58
......@@ -207,9 +207,9 @@ public class WxpayChannelRefundNoticeService extends AbstractChannelRefundNotice
try {
// 核对金额
Integer total_fee = result.getAmount().getTotal(); // 退款金额
long wxPayAmt = new BigDecimal(total_fee).longValue();
long dbPayAmt = refundOrder.getRefundAmount().longValue();
String refundAmt = result.getAmount().getRefund(); // 退款金额
long wxPayAmt = new BigDecimal(refundAmt).longValue();
long dbPayAmt = refundOrder.getRefundAmount();
if (dbPayAmt != wxPayAmt) {
throw ResponseException.buildText("AMOUNT ERROR");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment