update:
1. 支付实体类
This commit is contained in:
@@ -206,8 +206,7 @@ public class WxPayAccountConfig extends BaseEntity {
|
||||
if (!StringUtils.isBlank(certPkcs)) {
|
||||
try {
|
||||
byte[] decode = Base64.decode(certPkcs);
|
||||
ByteArrayInputStream stream = new ByteArrayInputStream(decode);
|
||||
certPkcsStream = stream;
|
||||
certPkcsStream = new ByteArrayInputStream(decode);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.err.println("微信p12证书格式错误");
|
||||
@@ -219,8 +218,7 @@ public class WxPayAccountConfig extends BaseEntity {
|
||||
public ByteArrayInputStream getCertPubKeyStream() {
|
||||
if (!StringUtils.isBlank(certPubKey)) {
|
||||
try {
|
||||
ByteArrayInputStream stream = new ByteArrayInputStream(certPubKey.getBytes());
|
||||
certPubKeyStream = stream;
|
||||
certPubKeyStream = new ByteArrayInputStream(certPubKey.getBytes());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.err.println("微信公钥证书格式错误");
|
||||
|
||||
Reference in New Issue
Block a user