From dd4c50bba837ab135321719abd4478508fe2c3ea Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 30 May 2024 11:53:50 +0800
Subject: [PATCH] 图片上传

---
 src/main/resources/application-prod.yml                      |    2 +-
 src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java b/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java
index 2b90dbe..28c0ef8 100644
--- a/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java
+++ b/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java
@@ -102,8 +102,11 @@
 			JsApiPayBusiness jsApiPayBusiness = new JsApiPayBusiness();
 			String paySecret = xcxProperties.getWecharpaySecret();
 			String appId = xcxProperties.getXcxAppid();
-//			String certLocalPath = xcxProperties.getCertLocalPath();
-			String certLocalPath = "src/main/resources/wxP12/apiclient_cert.p12";
+			Boolean debug = xcxProperties.getDebug();
+			String certLocalPath = xcxProperties.getCertLocalPath();
+			if(debug){
+				certLocalPath = "src/main/resources/wxP12/apiclient_cert.p12";
+			}
 
 			RefundReqData refundReqData=new RefundReqData(mchID,appId,paySecret, outTradeNo, outRefundNo, totalFee, refundFee,opUserID);
 			RefundService refundService=new RefundService();
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index 744c7fe..d05d0ba 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -66,7 +66,7 @@
   debug: false
   wecharPaynotifyUrl: https://xcxapi.csyzyl.com/api/xcxPay/wxpayCallback
   wecharRechargePaynotifyUrl: https://xcxapi.csyzyl.com/api/xcxPay/rechargeCallBack
-  certLocalPath: /home/javaweb/webresource/yzyl/cert/apiclient_cert.p12
+  certLocalPath: /home/yzylcert/apiclient_cert.p12
   wecharpayMchid: 1676508272
   wecharpaySecret: YYSC13875978057YYSC13875978057SH
   gaodeKey: 95ede7157929f5f6b6c758971be924b1

--
Gitblit v1.9.1