From f36d889393a741fb17f9e10bda1bef4d88cf5ffd Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期二, 17 十二月 2024 12:14:21 +0800
Subject: [PATCH] 修改第三方账号

---
 UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java b/UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java
index 3874a8c..eba1cc2 100644
--- a/UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java
+++ b/UserAHTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java
@@ -72,16 +72,15 @@
     @Value("${callbackPath}")
     private String callbackPath;//支付回调网关地址
 
-    private String app_cert_path = "/usr/local/server/cer/zhifubao/user/app_cert_path.crt";//应用公钥证书路径
+    private String app_cert_path = "/root/server/app/cert/ali/appCertPublicKey_2021003115600201.crt";//应用公钥证书路径
 
-    private String alipay_cert_path = "/usr/local/server/cer/zhifubao/user/alipay_cert_path.crt";//支付宝公钥证书文件路径
+    private String alipay_cert_path = "/root/server/app/cert/ali/alipayCertPublicKey_RSA2.crt";//支付宝公钥证书文件路径
 
-    private String alipay_root_cert_path = "/usr/local/server/cer/zhifubao/user/alipay_root_cert_path.crt";//支付宝CA根证书文件路径
+    private String alipay_root_cert_path = "/root/server/app/cert/ali/alipayRootCert.crt";//支付宝CA根证书文件路径
 
     @Autowired
     private HttpClientUtil httpClientUtil;
 
-    private Map<String, JSONObject> order = new HashMap<>();//存储支付订单用于主动查询支付结果
 
 
     /**
@@ -604,7 +603,7 @@
         Map<String, String> map1 = null;
         String body1 = null;
         try {
-            String certPath = "/usr/local/server/cert/weixin/apiclient_cert.p12";
+            String certPath = "/root/server/app/cert/weixin/apiclient_cert.p12";
             body1 = httpClientUtil.pushHttpsRequsetXml(url, xmlString.toString(), new HashMap<>(), mchId, certPath, "PKCS12");
         } catch (Exception e) {
             e.printStackTrace();
@@ -868,7 +867,7 @@
         xmlString.append("</xml>");
 
         Map<String, String> map1 = null;
-        String certPath = "/usr/local/server/cert/weixin/apiclient_cert.p12";//证书地址
+        String certPath = "/root/server/app/cert/weixin/apiclient_cert.p12";//证书地址
         String body1 = httpClientUtil.pushHttpsRequsetXml(url, xmlString.toString(), new HashMap<>(), mchId, certPath, "PKCS12");
         //将结果xml解析成map
         body1 = body1.replaceAll("<!\\[CDATA\\[","");
@@ -945,7 +944,7 @@
         xmlString.append("</xml>");
 
         Map<String, String> map1 = null;
-        String certPath = "/usr/local/server/cert/weixin/apiclient_cert.p12";//证书地址
+        String certPath = "/root/server/app/cert/weixin/apiclient_cert.p12";//证书地址
         String body1 = httpClientUtil.pushHttpsRequsetXml(url, xmlString.toString(), new HashMap<>(), mchId, certPath, "PKCS12");
         //将结果xml解析成map
         body1 = body1.replaceAll("<!\\[CDATA\\[","");

--
Gitblit v1.7.1