查询调整
parent
07470c037d
commit
5cf311efea
|
@ -73,13 +73,8 @@ public class AppletPayController {
|
|||
|
||||
/** 构建service */
|
||||
private JsapiServiceExtension createService() {
|
||||
ClassPathResource keyClassPath = new ClassPathResource("/wechatpay/apiclient_key.pem");
|
||||
String privateKeyPath = null;
|
||||
try {
|
||||
privateKeyPath = keyClassPath.getURL().getPath();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
String privateKeyPath = this.getClass().getClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();;
|
||||
|
||||
Config config =
|
||||
new RSAAutoCertificateConfig.Builder()
|
||||
.merchantId(wechatPayConfig.getMchId())
|
||||
|
|
|
@ -73,13 +73,8 @@ public class H5PayController {
|
|||
}
|
||||
|
||||
private H5Service createService() {
|
||||
ClassPathResource keyClassPath = new ClassPathResource("/wechatpay/apiclient_key.pem");
|
||||
String privateKeyPath = null;
|
||||
try {
|
||||
privateKeyPath = keyClassPath.getURL().getPath();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
String privateKeyPath = this.getClass().getClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();;
|
||||
|
||||
Config config =
|
||||
new RSAAutoCertificateConfig.Builder()
|
||||
.merchantId(wechatPayConfig.getMchId())
|
||||
|
|
|
@ -26,8 +26,8 @@ public class WechatPayTest {
|
|||
|
||||
@Test
|
||||
void createService() throws IOException {
|
||||
ClassPathResource keyClassPath = new ClassPathResource("/wechatpay/apiclient_key.pem");
|
||||
String privateKeyPath = keyClassPath.getURL().getPath();
|
||||
|
||||
String privateKeyPath = this.getClass().getClassLoader().getResource("wechatPay/apiclient_key.pem").getPath();
|
||||
Config config =
|
||||
new RSAAutoCertificateConfig.Builder()
|
||||
.merchantId(wechatPayConfig.getMchId())
|
||||
|
|
Loading…
Reference in New Issue