Skip to content

Commit

Permalink
🐛 #1714 修复小程序初始化时报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Aug 22, 2020
1 parent c1c66e9 commit bd100bf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,12 @@ protected String extractAccessToken(String resultContent) throws WxErrorExceptio

@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
Expand Down

0 comments on commit bd100bf

Please sign in to comment.