KKSU
2025-02-10 70af23c7bb284fbbda04934e4da63e4729b1a065
src/main/java/cc/mrbird/febs/pay/controller/FIUUController.java
@@ -190,11 +190,12 @@
            log.info("Payment succeeded for order: {}", orderId);
            MallMoneyFlow mallMoneyFlow = mallMoneyFlowService.getBaseMapper().selectOne(new LambdaQueryWrapper<MallMoneyFlow>().eq(MallMoneyFlow::getOrderNo, orderId));
            if (mallMoneyFlow != null) {
                // 更新订单状态为已支付
                mallMoneyFlow.setStatus(2);
                mallMoneyFlowService.getBaseMapper().updateById(mallMoneyFlow);
                memberWalletService.addBalance(mallMoneyFlow.getAmount(),mallMoneyFlow.getMemberId());
                if(1 == mallMoneyFlow.getStatus()){
                    memberWalletService.addBalance(mallMoneyFlow.getAmount(),mallMoneyFlow.getMemberId());
                    // 更新订单状态为已支付
                    mallMoneyFlow.setStatus(2);
                    mallMoneyFlowService.getBaseMapper().updateById(mallMoneyFlow);
                }
            }else{
                MallOrderInfo mallOrderInfo = mallOrderInfoMapper.selectById(Long.parseLong(orderId));
                if(mallOrderInfo != null){