查询调整
parent
5cf311efea
commit
3653366102
|
@ -73,7 +73,8 @@ public class AppletPayController {
|
|||
|
||||
/** 构建service */
|
||||
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 =
|
||||
new RSAAutoCertificateConfig.Builder()
|
||||
|
|
|
@ -73,7 +73,7 @@ public class H5PayController {
|
|||
}
|
||||
|
||||
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 =
|
||||
new RSAAutoCertificateConfig.Builder()
|
||||
|
|
|
@ -27,7 +27,7 @@ public class WechatPayTest {
|
|||
@Test
|
||||
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 =
|
||||
new RSAAutoCertificateConfig.Builder()
|
||||
.merchantId(wechatPayConfig.getMchId())
|
||||
|
|
Loading…
Reference in New Issue