查询调整

dev
caolin 2023-08-24 02:34:46 +08:00
parent 0273c01772
commit 443cf0b890
2 changed files with 4 additions and 6 deletions

View File

@ -73,13 +73,12 @@ public class AppletPayController {
/** 构建service */ /** 构建service */
private JsapiServiceExtension createService() { private JsapiServiceExtension createService() {
String privateKeyPath = Thread.currentThread().getContextClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();
Config config = Config config =
new RSAAutoCertificateConfig.Builder() new RSAAutoCertificateConfig.Builder()
.merchantId(wechatPayConfig.getMchId()) .merchantId(wechatPayConfig.getMchId())
// .privateKeyFromPath(wechatPayConfig.getPrivateKeyPath()) .privateKeyFromPath(wechatPayConfig.getPrivateKeyPath())
.privateKeyFromPath(privateKeyPath) // .privateKeyFromPath(privateKeyPath)
.merchantSerialNumber(wechatPayConfig.getMchSerialNo()) .merchantSerialNumber(wechatPayConfig.getMchSerialNo())
.apiV3Key(wechatPayConfig.getApiV3Key()) .apiV3Key(wechatPayConfig.getApiV3Key())
.build(); .build();

View File

@ -73,13 +73,12 @@ public class H5PayController {
} }
private H5Service createService() { private H5Service createService() {
String privateKeyPath = Thread.currentThread().getContextClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();
Config config = Config config =
new RSAAutoCertificateConfig.Builder() new RSAAutoCertificateConfig.Builder()
.merchantId(wechatPayConfig.getMchId()) .merchantId(wechatPayConfig.getMchId())
// .privateKeyFromPath(wechatPayConfig.getPrivateKeyPath()) .privateKeyFromPath(wechatPayConfig.getPrivateKeyPath())
.privateKeyFromPath(privateKeyPath) // .privateKeyFromPath(privateKeyPath)
.merchantSerialNumber(wechatPayConfig.getMchSerialNo()) .merchantSerialNumber(wechatPayConfig.getMchSerialNo())
.apiV3Key(wechatPayConfig.getApiV3Key()) .apiV3Key(wechatPayConfig.getApiV3Key())
.build(); .build();