From 8d6f2fe54a4456d6e56c4473b951f773b2b362d8 Mon Sep 17 00:00:00 2001
From: Administrator <1101184511@qq.com>
Date: 星期日, 27 七月 2025 22:58:05 +0800
Subject: [PATCH] 后台管理页面完成

---
 src/main/java/com/taoke/autopay/utils/AlipayUtil.java |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/taoke/autopay/utils/AlipayUtil.java b/src/main/java/com/taoke/autopay/utils/AlipayUtil.java
index 1d28585..dc6ced4 100644
--- a/src/main/java/com/taoke/autopay/utils/AlipayUtil.java
+++ b/src/main/java/com/taoke/autopay/utils/AlipayUtil.java
@@ -29,12 +29,17 @@
         certAlipayRequest.setFormat("json");
         certAlipayRequest.setCharset("GBK");
         certAlipayRequest.setSignType("RSA2");
-        certAlipayRequest.setCertPath(
-                AlipayUtil.class.getClassLoader().getResource("alipay/appCertPublicKey_2021004141681244.crt").getPath());
-        certAlipayRequest.setAlipayPublicCertPath(
-                AlipayUtil.class.getClassLoader().getResource("alipay/alipayCertPublicKey_RSA2.crt").getPath());
-        certAlipayRequest.setRootCertPath(
-                AlipayUtil.class.getClassLoader().getResource("alipay/alipayRootCert.crt").getPath());
+//        certAlipayRequest.setCertPath(
+//                AlipayUtil.class.getClassLoader().getResource("alipay/appCertPublicKey_2021004141681244.crt").getPath());
+//        certAlipayRequest.setAlipayPublicCertPath(
+//                AlipayUtil.class.getClassLoader().getResource("alipay/alipayCertPublicKey_RSA2.crt").getPath());
+//        certAlipayRequest.setRootCertPath(
+//                AlipayUtil.class.getClassLoader().getResource("alipay/alipayRootCert.crt").getPath());
+
+        certAlipayRequest.setCertPath("/www/wwwroot/alipay/appCertPublicKey_2021004141681244.crt");
+        certAlipayRequest.setAlipayPublicCertPath("/www/wwwroot/alipay/alipayCertPublicKey_RSA2.crt");
+        certAlipayRequest.setRootCertPath("/www/wwwroot/alipay/alipayRootCert.crt");
+
         logger.info("璇佷功璺緞锛歿}", certAlipayRequest.getCertPath());
         try {
             alipayClient = new DefaultAlipayClient(certAlipayRequest);
@@ -67,9 +72,11 @@
         response = alipayClient.certificateExecute(request);
         // 鎴愬姛杞处
         if (response != null && response.isSuccess() && "10000".equals(response.getCode())) {
+            logger.info("杞处鎴愬姛锛歿}-{}-{}-{}",outBizNo, name, account,money );
             return response;
         } else// 杞处澶辫触
         {
+            logger.warn("杞处澶辫触锛歿}-{}",outBizNo, response!=null? response.getSubMsg():"鏈煡鍘熷洜");
             throw new AlipayTransferException(Integer.parseInt(response.getCode()), response.getSubCode(),
                     response.getSubMsg());
         }

--
Gitblit v1.8.0