修复微信退款通知 应检验退款金额问题
This commit is contained in:
parent
65500b5892
commit
19f7115931
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue