File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
main/java/me/chanjar/weixin/mp/api
test/java/me/chanjar/weixin/mp/api/impl Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ public interface WxMpService {
347
347
* @param mpId 公众号标识
348
348
* @return 切换成功,则返回当前对象,方便链式调用,否则抛出异常
349
349
*/
350
- WxMpService switchover1 (String mpId );
350
+ WxMpService switchoverTo (String mpId );
351
351
352
352
/**
353
353
* 返回客服接口方法实现类,以方便调用其各个接口.
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ public void removeConfigStorage(String mpId) {
377
377
}
378
378
379
379
@ Override
380
- public WxMpService switchover1 (String mpId ) {
380
+ public WxMpService switchoverTo (String mpId ) {
381
381
if (this .configStorageMap .containsKey (mpId )) {
382
382
WxMpConfigStorageHolder .set (mpId );
383
383
return this ;
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ public void testSwitchover() {
33
33
}
34
34
35
35
@ Test
36
- public void testSwitchover1 () throws WxErrorException {
37
- assertThat (this .wxService .switchover1 ("another" ).getAccessToken ()).isNotEmpty ();
36
+ public void testSwitchoverTo () throws WxErrorException {
37
+ assertThat (this .wxService .switchoverTo ("another" ).getAccessToken ()).isNotEmpty ();
38
38
assertThat (WxMpConfigStorageHolder .get ()).isEqualTo ("another" );
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments