🎨 【微信支付】修复使用setPrivateKeyString设置秘钥串时报“v3请求构造异常”的问题

This commit is contained in:
everythingok 2024-03-29 11:26:25 +00:00 committed by Binary Wang
parent fe5430ee65
commit 94aaff4c94

View File

@ -325,7 +325,7 @@ public class WxPayConfig {
if (configContent != null) {
inputStream = new ByteArrayInputStream(configContent);
} else if (StringUtils.isNotEmpty(configString)) {
configContent = Base64.getDecoder().decode(configString);
configContent = configString.getBytes(StandardCharsets.UTF_8);
inputStream = new ByteArrayInputStream(configContent);
} else {
if (StringUtils.isBlank(configPath)) {