Skip to content

Commit cab6636

Browse files
committed
优化方法名
1 parent e92e417 commit cab6636

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public interface WxMpService {
347347
* @param mpId 公众号标识
348348
* @return 切换成功,则返回当前对象,方便链式调用,否则抛出异常
349349
*/
350-
WxMpService switchover1(String mpId);
350+
WxMpService switchoverTo(String mpId);
351351

352352
/**
353353
* 返回客服接口方法实现类,以方便调用其各个接口.

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public void removeConfigStorage(String mpId) {
377377
}
378378

379379
@Override
380-
public WxMpService switchover1(String mpId) {
380+
public WxMpService switchoverTo(String mpId) {
381381
if (this.configStorageMap.containsKey(mpId)) {
382382
WxMpConfigStorageHolder.set(mpId);
383383
return this;

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public void testSwitchover() {
3333
}
3434

3535
@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();
3838
assertThat(WxMpConfigStorageHolder.get()).isEqualTo("another");
3939
}
4040
}

0 commit comments

Comments
 (0)