mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-21 11:07:37 +08:00
优化代码
This commit is contained in:
@@ -333,6 +333,11 @@ public abstract class BaseWxMpServiceImpl<H, P> implements WxMpService, RequestH
|
||||
|
||||
@Override
|
||||
public WxMpConfigStorage getWxMpConfigStorage() {
|
||||
if (this.configStorageMap.size() == 1) {
|
||||
// 只有一个公众号,直接返回其配置即可
|
||||
return this.configStorageMap.values().iterator().next();
|
||||
}
|
||||
|
||||
return this.configStorageMap.get(WxMpConfigStorageHolder.get());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user