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