查询调整

dev
caolin 2023-08-24 01:31:16 +08:00
parent 5cf311efea
commit 3653366102
3 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,8 @@ public class AppletPayController {
/** 构建service */ /** 构建service */
private JsapiServiceExtension createService() { private JsapiServiceExtension createService() {
String privateKeyPath = this.getClass().getClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();; String privateKeyPath = Thread.currentThread().getContextClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();
;
Config config = Config config =
new RSAAutoCertificateConfig.Builder() new RSAAutoCertificateConfig.Builder()

View File

@ -73,7 +73,7 @@ public class H5PayController {
} }
private H5Service createService() { private H5Service createService() {
String privateKeyPath = this.getClass().getClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();; String privateKeyPath = Thread.currentThread().getContextClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();
Config config = Config config =
new RSAAutoCertificateConfig.Builder() new RSAAutoCertificateConfig.Builder()

View File

@ -27,7 +27,7 @@ public class WechatPayTest {
@Test @Test
void createService() throws IOException { void createService() throws IOException {
String privateKeyPath = this.getClass().getClassLoader().getResource("wechatPay/apiclient_key.pem").getPath(); 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())