KKSU
2023-12-22 0e3064b8722b33ee2cf67f8fac581a8b0e04832b
src/main/java/cc/mrbird/febs/pay/controller/XcxPayController.java
@@ -73,11 +73,11 @@
    @Autowired
    private IApiMallMemberWalletService memberWalletService;
    @Autowired
    private WxPayService wxPayService;
    @Autowired
    private IXcxCodePayService xcxCodePayService;
//    @Autowired
//    private WxPayService wxPayService;
//
//    @Autowired
//    private IXcxCodePayService xcxCodePayService;
    @Autowired
    private IXcxPayService iXcxPayService;
@@ -254,7 +254,7 @@
                        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);
@@ -299,13 +299,13 @@
    }
    @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("成功");
//    }
}