mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	测试配置中增加证书文件路径的设置
This commit is contained in:
		| @ -15,10 +15,11 @@ public class ApiTestModule implements Module { | ||||
|   @Override | ||||
|   public void configure(Binder binder) { | ||||
|     try (InputStream is1 = ClassLoader | ||||
|         .getSystemResourceAsStream("test-config.xml")) { | ||||
|       .getSystemResourceAsStream("test-config.xml")) { | ||||
|       WxXmlMpInMemoryConfigStorage config = this | ||||
|           .fromXml(WxXmlMpInMemoryConfigStorage.class, is1); | ||||
|         .fromXml(WxXmlMpInMemoryConfigStorage.class, is1); | ||||
|       config.setAccessTokenLock(new ReentrantLock()); | ||||
|       config.setSslContextFilePath(config.getKeyPath()); | ||||
|       WxMpService wxService = new WxMpServiceImpl(); | ||||
|       wxService.setWxMpConfigStorage(config); | ||||
|  | ||||
|  | ||||
| @ -1,15 +1,16 @@ | ||||
| <xml> | ||||
|     <appId>公众号appID</appId> | ||||
|     <secret>公众号appsecret</secret> | ||||
|     <token>公众号Token</token> | ||||
|     <aesKey>公众号EncodingAESKey</aesKey> | ||||
|     <accessToken>可以不填写</accessToken> | ||||
|     <expiresTime>可以不填写</expiresTime> | ||||
|     <openid>某个加你公众号的用户的openId</openid> | ||||
|     <partnerId>微信商户平台ID</partnerId> | ||||
|     <partnerKey>商户平台设置的API密钥</partnerKey> | ||||
|     <templateId>模版消息的模版ID</templateId> | ||||
|     <oauth2redirectUri>网页授权获取用户信息回调地址</oauth2redirectUri> | ||||
|     <qrconnectRedirectUrl>网页应用授权登陆回调地址</qrconnectRedirectUrl> | ||||
|     <kfAccount>完整客服账号,格式为:账号前缀@公众号微信号</kfAccount> | ||||
|   <appId>公众号appID</appId> | ||||
|   <secret>公众号appsecret</secret> | ||||
|   <token>公众号Token</token> | ||||
|   <aesKey>公众号EncodingAESKey</aesKey> | ||||
|   <accessToken>可以不填写</accessToken> | ||||
|   <expiresTime>可以不填写</expiresTime> | ||||
|   <openid>某个加你公众号的用户的openId</openid> | ||||
|   <partnerId>微信商户平台ID</partnerId> | ||||
|   <partnerKey>商户平台设置的API密钥</partnerKey> | ||||
|   <keyPath>商户平台的证书文件地址</keyPath> | ||||
|   <templateId>模版消息的模版ID</templateId> | ||||
|   <oauth2redirectUri>网页授权获取用户信息回调地址</oauth2redirectUri> | ||||
|   <qrconnectRedirectUrl>网页应用授权登陆回调地址</qrconnectRedirectUrl> | ||||
|   <kfAccount>完整客服账号,格式为:账号前缀@公众号微信号</kfAccount> | ||||
| </xml> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang