| | |
| | | */ |
| | | @PostMapping("pay/notify") |
| | | @ApiOperation("订单回调") |
| | | public R<Map<String, Object>> payNotify(HttpServletRequest request) throws Exception { |
| | | public void payNotify(HttpServletRequest request) throws Exception { |
| | | try { |
| | | Map<String, Object> params = wxV3Pay.verifyNotify(request, new TypeReference<Map<String, Object>>() {}); |
| | | log.info("支付回调:{}", params); |
| | |
| | | break; |
| | | } |
| | | wxV3Pay.ack(); |
| | | return R.ok(params); |
| | | } catch (Exception e) { |
| | | log.error("支付回调异常:{}", e, e); |
| | | wxV3Pay.ack(false, e.getMessage()); |
| | | return R.fail("回调异常"); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |