Commit 8f405da3 by chongli

退款证书路径

parent 088004da
......@@ -214,7 +214,7 @@ public class WXUtil {
public static Map<String, String> doRefund(String url,String data,String partner) throws Exception {
KeyStore keyStore = KeyStore.getInstance("PKCS12");
URL url2 = WXUtil.class.getClassLoader().getResource("apiclient_cert.p12");
FileInputStream instream = new FileInputStream(new File("/opt/apiclient_cert.p12"));//P12文件目录
FileInputStream instream = new FileInputStream(new File(url2.toURI()));//P12文件目录
try {
keyStore.load(instream, partner.toCharArray());
} finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment