mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +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
|
@Override
|
||||||
public WxMpConfigStorage getWxMpConfigStorage() {
|
public WxMpConfigStorage getWxMpConfigStorage() {
|
||||||
|
if (this.configStorageMap.size() == 1) {
|
||||||
|
// 只有一个公众号,直接返回其配置即可
|
||||||
|
return this.configStorageMap.values().iterator().next();
|
||||||
|
}
|
||||||
|
|
||||||
return this.configStorageMap.get(WxMpConfigStorageHolder.get());
|
return this.configStorageMap.get(WxMpConfigStorageHolder.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user