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

This commit is contained in:
Ader1y 栈烟 2024-12-12 16:18:54 +08:00 committed by GitHub
parent ca005534d4
commit f70a305aea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}