|
|
@ -68,8 +68,8 @@ public class WecPaymentServiceImp implements WecPaymentService { |
|
|
wxRefundAmountVo.setRefund(refundBO.getRefundAmount()); |
|
|
wxRefundAmountVo.setRefund(refundBO.getRefundAmount()); |
|
|
wxpayRefundVo.setAmount(wxRefundAmountVo); |
|
|
wxpayRefundVo.setAmount(wxRefundAmountVo); |
|
|
String refundRsp = WxpayUtils.refund(wxpayRefundVo,refundBO.getMchId(),refundBO.getMchPrivateKey(),refundBO.getCertificate(),refundBO.getSerialNo()); |
|
|
String refundRsp = WxpayUtils.refund(wxpayRefundVo,refundBO.getMchId(),refundBO.getMchPrivateKey(),refundBO.getCertificate(),refundBO.getSerialNo()); |
|
|
Map<String, String> resultMap = StringHelper.json2map(refundRsp); |
|
|
JSONObject jsonObject = JSONObject.parseObject(refundRsp); |
|
|
if(PaymentConstant.WX_SUCCESS.equals(resultMap.get("status"))) |
|
|
if(PaymentConstant.WX_SUCCESS.equals(jsonObject.getString("status"))) |
|
|
return true; |
|
|
return true; |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|