281 【轻量级 PR】:fix WXLitePayClient.java 中copy应忽略的字段

This commit is contained in:
YunaiV 2022-11-10 22:37:37 +08:00
parent 46d16c45e6
commit 2460e492cf

View File

@ -49,7 +49,7 @@ public class WXLitePayClient extends AbstractPayClient<WXPayClientConfig> {
@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));