| | |
| | | public R<Map<String, Object>> payNotify(HttpServletRequest request) throws Exception { |
| | | try { |
| | | Map<String, Object> params = wxV3Pay.verifyNotify(request, new TypeReference<Map<String, Object>>() {}); |
| | | log.info("支付回调:{}", params); |
| | | String outRefundNo = (String) params.get("out_refund_no"); |
| | | String out_trade_no = params.get("out_trade_no").toString(); |
| | | String substring = outRefundNo.substring(0, 2); |
| | | switch (substring){ |
| | | //购物订单 |
| | | case "GW": |
| | | //更改订单状态 |
| | | //如果是优惠卷赠送优惠卷 |
| | | |
| | | break; |
| | | } |
| | | |
| | | log.info("支付回调:{}", params); |
| | | return R.ok(params); |
| | | } catch (Exception e) { |
| | | log.error("支付回调异常:{}", e, e); |