无关风月
16 小时以前 9283fa6e32145ff0ae237c40d2008fc35e81ef7c
ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/WxChatPayCallBack.java
@@ -111,7 +111,7 @@
                withdrawDetail.setStatus("SUCCESS");
                withdrawDetailService.updateById(withdrawDetail);
                orderService.updateById(order);
            }else if ("CANCELLED".equals(state)){
            }else if ("CANCELLED".equals(state)||"CANCELING".equals(state)||"FAIL".equals(state)){
                // 校验提现
                List<Withdraw> list = withdrawService.lambdaQuery().eq(Withdraw::getUserId, order.getUserId())
                        .eq(Withdraw::getOrderId, order.getId()).list();
@@ -200,4 +200,13 @@
        return allTransfersSuccessful;
    }
//    public static void main(String[] args) {
//        String s = "1827928ae317443a8ef788e9ed56e8dc";
//        String s1 = HttpUtil.queryTransBatRequest(WechatConstants.WE_CHAT_PAY_QUERY_URL_PRE + s,
//                "7EEA04429B006E12AAA421C002EC48BBEED5BE94",
//                "1665330417",
//                "D:\\apiclient_key.pem", WechatConstants.WE_CHAT_QUERY_URL_SUF + s);
//        System.err.println(s1);
//    }
}