证书模式及非证书模式转账
public String queryPath() throws FileNotFoundException, ServerException {
String basePath = ResourceUtils.getURL("classpath:").getPath();
basePath = this.initCart(basePath);
return basePath;
}
private String initCart(String basePath) throws ServerException {
if (basePath.contains("jar!")) {
if (basePath.startsWith("file:")) {
basePath = basePath.replace("file:", "");
}
String appCertPath = aliPayProperties.getAppCertPath();
this.checkAndcopyCart(basePath, appCertPath);
String alipayCertPath = aliPayProperties.getAlipayCertPath();
this.checkAndcopyCart(basePath, alipayCertPath);
String alipayRootCertPath = aliPayProperties.getAlipayRootCertPath();
this.checkAndcopyCart(basePath, alipayRootCertPath);
}
return basePath;
}
private void checkAndcopyCart(String basePath, String path) throws ServerException