From 0b7c409aff156bc4d5605893e860c0c3652b9cd8 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 17 七月 2025 19:25:30 +0800
Subject: [PATCH] 111

---
 server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java b/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java
index 3c9cf04..e0b82bb 100644
--- a/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java
+++ b/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java
@@ -36,7 +36,7 @@
     public static JsapiServiceExtension jsapiExtService;
     public static BillDownloadService billDownloadService;
     public static WxPayProperties wxProperties;
-
+    public static  TransferToUser transferToUser;
     @Autowired
     private WxPayProperties wxPayProperties;
 
@@ -49,6 +49,8 @@
         this.load_WxMaService();
         this.load_wxPayService();
         this.load_wxPayV2Service();
+        this.load_transferToUser();
+        this.load_transferToUser();
         this.wxProperties = wxPayProperties;
     }
     /**
@@ -134,7 +136,18 @@
 //    }
 
 
+    public void load_transferToUser()
+    {
+        TransferToUser transferToUser = new TransferToUser(
+                StringUtils.trimToNull(wxPayProperties.getMchId()), //鍟嗘埛id
+                StringUtils.trimToNull(wxPayProperties.getWechatSerialNumer()), //鍟嗘埛API璇佷功搴忓垪鍙凤紝濡備綍鑾峰彇璇峰弬鑰� https://pay.weixin.qq.com/doc/v3/merchant/4013053053
+                StringUtils.trimToNull(wxPayProperties.getWechatPrivateKeyPath()), // 鍟嗘埛API璇佷功绉侀挜鏂囦欢璺緞锛屾湰鍦版枃浠惰矾寰�
+                StringUtils.trimToNull(wxPayProperties.getWechatPayPublicKeyId()),   // 寰俊鏀粯鍏挜ID锛屽浣曡幏鍙栬鍙傝�� https://pay.weixin.qq.com/doc/v3/merchant/4013038816
+                StringUtils.trimToNull(wxPayProperties.getWechatPubKeyPath()) // 寰俊鏀粯鍏挜鏂囦欢璺緞锛屾湰鍦版枃浠惰矾寰�
+        );
 
+        this.transferToUser = transferToUser;
+    }
 
 
 }

--
Gitblit v1.9.3