1. 支付实体类
This commit is contained in:
2026-03-28 13:26:58 +08:00
parent 1c18d8b082
commit 37cf579539

View File

@@ -206,8 +206,7 @@ public class WxPayAccountConfig extends BaseEntity {
if (!StringUtils.isBlank(certPkcs)) { if (!StringUtils.isBlank(certPkcs)) {
try { try {
byte[] decode = Base64.decode(certPkcs); byte[] decode = Base64.decode(certPkcs);
ByteArrayInputStream stream = new ByteArrayInputStream(decode); certPkcsStream = new ByteArrayInputStream(decode);
certPkcsStream = stream;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
System.err.println("微信p12证书格式错误"); System.err.println("微信p12证书格式错误");
@@ -219,8 +218,7 @@ public class WxPayAccountConfig extends BaseEntity {
public ByteArrayInputStream getCertPubKeyStream() { public ByteArrayInputStream getCertPubKeyStream() {
if (!StringUtils.isBlank(certPubKey)) { if (!StringUtils.isBlank(certPubKey)) {
try { try {
ByteArrayInputStream stream = new ByteArrayInputStream(certPubKey.getBytes()); certPubKeyStream = new ByteArrayInputStream(certPubKey.getBytes());
certPubKeyStream = stream;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
System.err.println("微信公钥证书格式错误"); System.err.println("微信公钥证书格式错误");