刘帅
2026-09-29 8a89ba02db5c19db669a5cf9bb7d443223bdfb71
cloud-server-other/src/main/java/com/dsh/other/util/PayMoneyUtil.java
@@ -54,7 +54,9 @@
    private String key = "6f5e0c2dcabfa9c27b5da5836a362fef";//微信商户号
    private String callbackPath = "https://online.daowepark.com:443/other";//支付回调网关地址
    private String callbackPath = "http://8.137.22.229:56666/other";//支付回调网关地址/
//    private String callbackPath = "http://8.137.14.183:56666/other";//支付回调网关地址
//    private String callbackPath = "http://47.108.147.192:56666/other";//支付回调网关地址
    private String app_cert_path = "C:/cert/alipay/user/app_cert_path.crt";//应用公钥证书路径
@@ -63,6 +65,7 @@
    private String alipay_root_cert_path = "C:/cert/alipay/user/alipay_root_cert_path.crt";//支付宝CA根证书文件路径
    private String certPath = "/usr/playpai/cert/weixin/apiclient_cert.p12";//微信证书
//    private String certPath = "E:\\apiclient_cert.p12";//微信证书
    public ResultUtil confirm(String smid1,String code, String outTradeNo, String amount) throws AlipayApiException {
@@ -595,8 +598,8 @@
            // TODO: 请求成功,继续业务逻辑
            System.out.println(response);
        } catch (WXPayUtility.ApiException e) {
            // TODO: 请求失败,根据状态码执行不同的逻辑
            e.printStackTrace();
            return ResultUtil.error("微信退款申请失败");
        }
        return ResultUtil.success();
    }