1
0
mirror of synced 2025-12-09 07:18:12 +08:00

🐛 【微信支付】修复公钥校验问题

This commit is contained in:
Ader1y 栈烟
2024-12-12 16:18:54 +08:00
committed by GitHub
parent ca005534d4
commit f70a305aea

View File

@@ -449,7 +449,8 @@ public class WxPayConfig {
*/
private Object[] p12ToPem() {
String key = getMchId();
if (StringUtils.isBlank(key) || StringUtils.isBlank(this.getKeyPath())) {
if (StringUtils.isBlank(key) ||
(StringUtils.isBlank(this.getKeyPath()) && this.keyContent == null && StringUtils.isBlank(this.keyString))) {
return null;
}