mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 12:47:46 +08:00
优化代码
This commit is contained in:
parent
cea482a762
commit
9fd7f7d8dc
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user