mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-21 19:17:39 +08:00
🐛 #1714 修复小程序初始化时报错的问题
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user