| | |
| | | * 退款回调 |
| | | */ |
| | | @PostMapping("refund/notify") |
| | | public R<WxRefundNotifyResp> refundNotify(HttpServletRequest request) throws IOException { |
| | | public void refundNotify(HttpServletRequest request) throws IOException { |
| | | try { |
| | | Map<String, Object> params = wxV3Pay.verifyNotify(request, new TypeReference<Map<String, Object>>() { |
| | | }); |
| | |
| | | resp.setRefund_id(refund_id); |
| | | resp.setSuccess_time(success_time); |
| | | wxV3Pay.ack(); |
| | | return R.ok(resp); |
| | | } else { |
| | | wxV3Pay.ack(false, "不是成功的退款状态"); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | wxV3Pay.ack(false, e.getMessage()); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |