update:
1. 支付实体类
This commit is contained in:
@@ -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("微信公钥证书格式错误");
|
||||||
|
|||||||
Reference in New Issue
Block a user