From 22603b2519b8dcb7f9a7c7d9ba636d9aba240a59 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期五, 18 七月 2025 09:15:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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