Skip to content

Commit

Permalink
🐛 #1937 【公众号】修复动态添加公众号配置的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Dec 27, 2020
1 parent 2e18fec commit 58e9411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,13 @@ public void setMultiConfigs(Map<String, WxMaConfig> configs, String defaultMinia
}

@Override
public void addConfig(String mpId, WxMaConfig configStorages) {
public void addConfig(String miniappId, WxMaConfig configStorages) {
synchronized (this) {
if (this.configMap == null) {
this.setWxMaConfig(configStorages);
} else {
this.configMap.put(mpId, configStorages);
WxMaConfigHolder.set(miniappId);
this.configMap.put(miniappId, configStorages);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ public void addConfigStorage(String mpId, WxMpConfigStorage configStorages) {
if (this.configStorageMap == null) {
this.setWxMpConfigStorage(configStorages);
} else {
WxMpConfigStorageHolder.set(mpId);
this.configStorageMap.put(mpId, configStorages);
}
}
Expand Down

0 comments on commit 58e9411

Please sign in to comment.