🐛 #1714 修复小程序初始化时报错的问题

This commit is contained in:
Binary Wang
2020-08-22 17:13:09 +08:00
parent c1c66e940e
commit bd100bf846

View File

@@ -298,7 +298,12 @@ public abstract class BaseWxMaServiceImpl<H, P> implements WxMaService, RequestH
@Override
public WxMaConfig getWxMaConfig() {
return this.wxMaConfig;
if (this.configMap.size() == 1) {
// 只有一个小程序,直接返回其配置即可
return this.configMap.values().iterator().next();
}
return this.configMap.get(WxMaConfigHolder.get());
}
@Override