-
Notifications
You must be signed in to change notification settings - Fork 254
定时更新平台证书支持多商户 #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
定时更新平台证书支持多商户 #98
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4ee8b51
增加github action
lianup 5b010f9
去除python插件
lianup 87262d2
更正SONATYPE_NEXUS_PASSWORD来源
lianup 5c43704
Merge branch 'wechatpay-apiv3:master' into master
lianup 7105b4a
自动更新平台证书支持多商户
lianup dc604d9
根据review建议修改
lianup 034520b
更新版本号
lianup 9447073
根据review建议修改
lianup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # 升级指南 | ||
| ## 从 0.3.0 升级至 0.4.0 | ||
| 版本`0.4.0`提供了支持多商户号的[定时更新平台证书功能](#定时更新平台证书功能),不兼容版本`0.3.0`。若你使用了`ScheduledUpdateCertificatesVerifier`,请使用`CertificatesManager`替换: | ||
| ```diff | ||
| -verifier = new ScheduledUpdateCertificatesVerifier( | ||
| - new WechatPay2Credentials(merchantId, new PrivateKeySigner(merchantSerialNumber, merchantPrivateKey)), | ||
| - apiV3Key.getBytes(StandardCharsets.UTF_8)); | ||
| +// 获取证书管理器实例 | ||
| +certificatesManager = CertificatesManager.getInstance(); | ||
| +// 向证书管理器增加需要自动更新平台证书的商户信息 | ||
| +certificatesManager.putMerchant(mchId, new WechatPay2Credentials(mchId, | ||
| + new PrivateKeySigner(mchSerialNo, merchantPrivateKey)), apiV3Key.getBytes(StandardCharsets.UTF_8)); | ||
| +// 从证书管理器中获取verifier | ||
| +verifier = certificatesManager.getVerifier(mchId); | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 0 additions & 74 deletions
74
...va/com/wechat/pay/contrib/apache/httpclient/auth/ScheduledUpdateCertificatesVerifier.java
This file was deleted.
Oops, something went wrong.
179 changes: 0 additions & 179 deletions
179
src/main/java/com/wechat/pay/contrib/apache/httpclient/cert/CertManagerSingleton.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.