Commit e8b7dbc9 by chongli

修复证书问题

parent 8f405da3
......@@ -213,8 +213,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(url2.toURI()));//P12文件目录
FileInputStream instream = new FileInputStream(new File("/opt/apiclient_cert.p12"));//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