1
0
mirror of synced 2025-12-26 20:48:00 +08:00

WxCpService添加getWxMpConfigStorage方法,同时修改相关位置

This commit is contained in:
ecoolper
2017-04-27 20:24:42 +08:00
parent d01d372b65
commit f42b22f5c1
5 changed files with 25 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ public class WxCpMessageAPITest {
protected WxCpServiceImpl wxService;
public void testSendCustomMessage() throws WxErrorException {
ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlCpInMemoryConfigStorage) this.wxService.configStorage;
ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlCpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
WxCpMessage message1 = new WxCpMessage();
message1.setAgentId(configStorage.getAgentId());
message1.setMsgType(WxConsts.CUSTOM_MSG_TEXT);