| | |
| | | */ |
| | | @ApiOperation("订单退款") |
| | | @PostMapping(value = "refundOrderR") |
| | | public R<String> refundOrderR(@RequestBody WxPaymentRefundModel model) { |
| | | public R<Map<String, Object>> refundOrderR(@RequestBody WxPaymentRefundModel model) { |
| | | Map<String, Object> result = wxV3Pay.refund(model); |
| | | log.info("退款结果:{}", result); |
| | | // 微信支付退款单号 |
| | |
| | | String success_time = Objects.nonNull(result.get("success_time")) ? result.get("success_time").toString() : null; |
| | | // 退款状态 RefundEnum |
| | | String status = result.get("status").toString(); |
| | | return R.ok(status); |
| | | return R.ok(result); |
| | | } |
| | | /** |
| | | * 支付回调 |