From 99b600d34ee5e2d82eecc4df233c33ecd0e18841 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期六, 19 七月 2025 16:14:20 +0800 Subject: [PATCH] 111 --- server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java | 22 +++++++++++++++++++++- 1 files changed, 21 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..08bf046 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,25 @@ // } + public void load_transferToUser() + { + TransferToUser transferToUser = new TransferToUser( + StringUtils.trimToNull(wxPayProperties.getSubMchId()), //鍟嗘埛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()) // 寰俊鏀粯鍏挜鏂囦欢璺緞锛屾湰鍦版枃浠惰矾寰� + ); +// TransferToUser client = new TransferToUser( +// "1229817002", // 鍟嗘埛鍙凤紝鏄敱寰俊鏀粯绯荤粺鐢熸垚骞跺垎閰嶇粰姣忎釜鍟嗘埛鐨勫敮涓�鏍囪瘑绗︼紝鍟嗘埛鍙疯幏鍙栨柟寮忓弬鑰� https://pay.weixin.qq.com/doc/v3/merchant/4013070756 +// "3FE90C2F3D40A56E1C51926F31B8A8D22426CCE0", // 鍟嗘埛API璇佷功搴忓垪鍙凤紝濡備綍鑾峰彇璇峰弬鑰� https://pay.weixin.qq.com/doc/v3/merchant/4013053053 +// "d://wechatApiclient_key.pem", // 鍟嗘埛API璇佷功绉侀挜鏂囦欢璺緞锛屾湰鍦版枃浠惰矾寰� +// "PUB_KEY_ID_0112298170022025071700291836000600", // 寰俊鏀粯鍏挜ID锛屽浣曡幏鍙栬鍙傝�� https://pay.weixin.qq.com/doc/v3/merchant/4013038816 +// "d://pub_key.pem" // 寰俊鏀粯鍏挜鏂囦欢璺緞锛屾湰鍦版枃浠惰矾寰� +// ); + this.transferToUser = transferToUser; + } } -- Gitblit v1.9.3