mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
🐛 #1937 【公众号】修复动态添加公众号配置的问题
This commit is contained in:
parent
2e18fec385
commit
58e9411b45
@ -328,12 +328,13 @@ public abstract class BaseWxMaServiceImpl<H, P> implements WxMaService, RequestH
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addConfig(String mpId, WxMaConfig configStorages) {
|
public void addConfig(String miniappId, WxMaConfig configStorages) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (this.configMap == null) {
|
if (this.configMap == null) {
|
||||||
this.setWxMaConfig(configStorages);
|
this.setWxMaConfig(configStorages);
|
||||||
} else {
|
} else {
|
||||||
this.configMap.put(mpId, configStorages);
|
WxMaConfigHolder.set(miniappId);
|
||||||
|
this.configMap.put(miniappId, configStorages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -439,6 +439,7 @@ public abstract class BaseWxMpServiceImpl<H, P> implements WxMpService, RequestH
|
|||||||
if (this.configStorageMap == null) {
|
if (this.configStorageMap == null) {
|
||||||
this.setWxMpConfigStorage(configStorages);
|
this.setWxMpConfigStorage(configStorages);
|
||||||
} else {
|
} else {
|
||||||
|
WxMpConfigStorageHolder.set(mpId);
|
||||||
this.configStorageMap.put(mpId, configStorages);
|
this.configStorageMap.put(mpId, configStorages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user