WxCpService的getWxMpConfigStorage方法修改为getWxCpConfigStorage
This commit is contained in:
@@ -562,5 +562,5 @@ public interface WxCpService {
|
|||||||
*
|
*
|
||||||
* @return WxMpConfigStorage
|
* @return WxMpConfigStorage
|
||||||
*/
|
*/
|
||||||
WxCpConfigStorage getWxMpConfigStorage();
|
WxCpConfigStorage getWxCpConfigStorage();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public class WxCpServiceImpl extends AbstractWxCpService<CloseableHttpClient, Ht
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WxCpConfigStorage getWxMpConfigStorage() {
|
public WxCpConfigStorage getWxCpConfigStorage() {
|
||||||
return this.configStorage;
|
return this.configStorage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public class WxCpServiceImpl extends AbstractWxCpService<HttpConnectionProvider,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WxCpConfigStorage getWxMpConfigStorage() {
|
public WxCpConfigStorage getWxCpConfigStorage() {
|
||||||
return this.configStorage;
|
return this.configStorage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public class WxCpServiceImpl extends AbstractWxCpService<ConnectionPool, OkhttpP
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WxCpConfigStorage getWxMpConfigStorage() {
|
public WxCpConfigStorage getWxCpConfigStorage() {
|
||||||
return this.configStorage;
|
return this.configStorage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class WxCpBaseAPITest {
|
|||||||
protected WxCpServiceImpl wxService;
|
protected WxCpServiceImpl wxService;
|
||||||
|
|
||||||
public void testRefreshAccessToken() throws WxErrorException {
|
public void testRefreshAccessToken() throws WxErrorException {
|
||||||
WxCpConfigStorage configStorage = this.wxService.configStorage;
|
WxCpConfigStorage configStorage = this.wxService.getWxCpConfigStorage();
|
||||||
String before = configStorage.getAccessToken();
|
String before = configStorage.getAccessToken();
|
||||||
this.wxService.getAccessToken(false);
|
this.wxService.getAccessToken(false);
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class WxCpMessageAPITest {
|
|||||||
protected WxCpServiceImpl wxService;
|
protected WxCpServiceImpl wxService;
|
||||||
|
|
||||||
public void testSendCustomMessage() throws WxErrorException {
|
public void testSendCustomMessage() throws WxErrorException {
|
||||||
ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlCpInMemoryConfigStorage) this.wxService.getWxMpConfigStorage();
|
ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage = (ApiTestModule.WxXmlCpInMemoryConfigStorage) this.wxService.getWxCpConfigStorage();
|
||||||
WxCpMessage message1 = new WxCpMessage();
|
WxCpMessage message1 = new WxCpMessage();
|
||||||
message1.setAgentId(configStorage.getAgentId());
|
message1.setAgentId(configStorage.getAgentId());
|
||||||
message1.setMsgType(WxConsts.CUSTOM_MSG_TEXT);
|
message1.setMsgType(WxConsts.CUSTOM_MSG_TEXT);
|
||||||
|
|||||||
Reference in New Issue
Block a user