Skip to content

Commit

Permalink
🎨 #1549 微信支付证书读取代码优化,支持读取打进jar包里的证书文件
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed May 12, 2020
1 parent 189669c commit 7ee2772
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public SSLContext initSSLContext() throws WxPayException {
if (!path.startsWith("/")) {
path = "/" + path;
}
inputStream = WxPayConfig.class.getResourceAsStream(path);
inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
if (inputStream == null) {
throw new WxPayException(fileNotFoundMsg);
}
Expand Down

0 comments on commit 7ee2772

Please sign in to comment.