From bb8204b5a70c33be731a785900b8826f8a66c0b4 Mon Sep 17 00:00:00 2001 From: chenlei65368 Date: Mon, 24 Oct 2022 10:43:04 +0000 Subject: [PATCH] =?UTF-8?q?fix=20WXLitePayClient.java=20=E4=B8=ADcopy?= =?UTF-8?q?=E5=BA=94=E5=BF=BD=E7=95=A5=E7=9A=84=E5=AD=97=E6=AE=B5=20?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=94=AF=E4=BB=98=EF=BC=8Ccopy?= =?UTF-8?q?=E5=BA=94=E5=BF=BD=E7=95=A5=20"privateKeyContent","privateCertC?= =?UTF-8?q?ontent"=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E2=80=9CKeyContent?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenlei65368 --- .../framework/pay/core/client/impl/wx/WXLitePayClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/wx/WXLitePayClient.java b/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/wx/WXLitePayClient.java index c9b81ace0..455ad62d2 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/wx/WXLitePayClient.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/wx/WXLitePayClient.java @@ -49,7 +49,7 @@ public class WXLitePayClient extends AbstractPayClient { @Override protected void doInit() { WxPayConfig payConfig = new WxPayConfig(); - BeanUtil.copyProperties(config, payConfig, "keyContent"); + BeanUtil.copyProperties(config, payConfig, "privateKeyContent","privateCertContent"); payConfig.setTradeType(WxPayConstants.TradeType.JSAPI); // 设置使用 JS API 支付方式 // if (StrUtil.isNotEmpty(config.getKeyContent())) { // payConfig.setKeyContent(config.getKeyContent().getBytes(StandardCharsets.UTF_8));