Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
f8412f3d
Commit
f8412f3d
authored
Dec 16, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信支付修改
parent
fa1681e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
WXSuppToUserPay.java
...m/xxfc/platform/universal/weixin/api/WXSuppToUserPay.java
+7
-4
No files found.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/weixin/api/WXSuppToUserPay.java
View file @
f8412f3d
...
...
@@ -18,11 +18,11 @@ import org.apache.http.impl.client.HttpClients;
import
org.apache.http.protocol.HttpContext
;
import
org.apache.http.util.EntityUtils
;
import
org.jdom.JDOMException
;
import
org.springframework.core.io.ClassPathResource
;
import
javax.net.ssl.SSLContext
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.security.KeyStore
;
import
java.util.Map
;
import
java.util.TreeMap
;
...
...
@@ -80,8 +80,11 @@ public class WXSuppToUserPay {
try
{
KeyStore
keyStore
=
KeyStore
.
getInstance
(
"PKCS12"
);
// FileInputStream instream = new FileInputStream(new File("E:/cert/apiclient_cert.p12"));
String
path
=
Thread
.
currentThread
().
getContextClassLoader
().
getResource
(
"/"
).
getPath
();
FileInputStream
instream
=
new
FileInputStream
(
new
File
(
path
+
"/apiclient_cert.p12"
));
// String path = Thread.currentThread().getContextClassLoader().getResource("/").getPath();
// FileInputStream instream = new FileInputStream(new File(path+"/apiclient_cert.p12"));
// InputStream resourceAsStream = this.getClass().getResourceAsStream("apiclient_cert.p12");
ClassPathResource
classPathResource
=
new
ClassPathResource
(
"apiclient_cert.p12"
);
InputStream
instream
=
classPathResource
.
getInputStream
();
try
{
keyStore
.
load
(
instream
,
SystemConfig
.
APP_PARTNER
.
toCharArray
());
}
finally
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment