| | |
| | | @Autowired |
| | | private IApiMallMemberWalletService memberWalletService; |
| | | |
| | | @Autowired |
| | | private WxPayService wxPayService; |
| | | |
| | | @Autowired |
| | | private IXcxCodePayService xcxCodePayService; |
| | | // @Autowired |
| | | // private WxPayService wxPayService; |
| | | // |
| | | // @Autowired |
| | | // private IXcxCodePayService xcxCodePayService; |
| | | |
| | | @Autowired |
| | | private IXcxPayService iXcxPayService; |
| | |
| | | if (order != null && OrderStatusEnum.WAIT_PAY.getValue() == order.getStatus()) { |
| | | log.debug("检查支付金额payMoney={},order.getPayMoney()={}", payMoney, order.getAmount()); |
| | | order.setStatus(OrderStatusEnum.WAIT_SHIPPING.getValue()); |
| | | order.setPayResult("1"); |
| | | order.setPayResult(1); |
| | | order.setPayTime(new Date()); |
| | | order.setDeliveryState(OrderDeliveryStateEnum.DELIVERY_WAIT.getValue()); |
| | | mallOrderInfoMapper.updateById(order); |
| | |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/xcxCodePayCallBack") |
| | | public String xcxCodePayCallBack(@RequestBody String xmlData) throws WxPayException { |
| | | log.info("=======微信支付码付款回调:{}========", xmlData); |
| | | WxPayOrderNotifyResult notifyResult = this.wxPayService.parseOrderNotifyResult(xmlData); |
| | | xcxCodePayService.payCallback(notifyResult.toMap()); |
| | | return WxPayNotifyResponse.success("成功"); |
| | | } |
| | | // @PostMapping(value = "/xcxCodePayCallBack") |
| | | // public String xcxCodePayCallBack(@RequestBody String xmlData) throws WxPayException { |
| | | // log.info("=======微信支付码付款回调:{}========", xmlData); |
| | | // WxPayOrderNotifyResult notifyResult = wxPayService.parseOrderNotifyResult(xmlData); |
| | | // xcxCodePayService.payCallback(notifyResult.toMap()); |
| | | // return WxPayNotifyResponse.success("成功"); |
| | | // } |
| | | |
| | | |
| | | } |