mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-02 12:38:22 +08:00
测试配置中增加证书文件路径的设置
This commit is contained in:
@ -19,6 +19,7 @@ public class ApiTestModule implements Module {
|
|||||||
WxXmlMpInMemoryConfigStorage config = this
|
WxXmlMpInMemoryConfigStorage config = this
|
||||||
.fromXml(WxXmlMpInMemoryConfigStorage.class, is1);
|
.fromXml(WxXmlMpInMemoryConfigStorage.class, is1);
|
||||||
config.setAccessTokenLock(new ReentrantLock());
|
config.setAccessTokenLock(new ReentrantLock());
|
||||||
|
config.setSslContextFilePath(config.getKeyPath());
|
||||||
WxMpService wxService = new WxMpServiceImpl();
|
WxMpService wxService = new WxMpServiceImpl();
|
||||||
wxService.setWxMpConfigStorage(config);
|
wxService.setWxMpConfigStorage(config);
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
<openid>某个加你公众号的用户的openId</openid>
|
<openid>某个加你公众号的用户的openId</openid>
|
||||||
<partnerId>微信商户平台ID</partnerId>
|
<partnerId>微信商户平台ID</partnerId>
|
||||||
<partnerKey>商户平台设置的API密钥</partnerKey>
|
<partnerKey>商户平台设置的API密钥</partnerKey>
|
||||||
|
<keyPath>商户平台的证书文件地址</keyPath>
|
||||||
<templateId>模版消息的模版ID</templateId>
|
<templateId>模版消息的模版ID</templateId>
|
||||||
<oauth2redirectUri>网页授权获取用户信息回调地址</oauth2redirectUri>
|
<oauth2redirectUri>网页授权获取用户信息回调地址</oauth2redirectUri>
|
||||||
<qrconnectRedirectUrl>网页应用授权登陆回调地址</qrconnectRedirectUrl>
|
<qrconnectRedirectUrl>网页应用授权登陆回调地址</qrconnectRedirectUrl>
|
||||||
|
|||||||
Reference in New Issue
Block a user