🐞 fix: 修复当不同租户appid重复时导致的mpservice初始化失败

This commit is contained in:
akhan authored and PIGCLOUD committed 2026-03-08 14:59:00 +08:00
1 parent 4d9093c851
commit 7e78541763
1 file changed
+1 -1
@@ -113,7 +113,7 @@ public class WxMpInitConfigRunner {
routers.put(a.getAppid(), this.newRouter(service));
tenants.put(a.getAppid(), a.getTenantId());
return service;
}).collect(Collectors.toMap(s -> s.getWxMpConfigStorage().getAppId(), a -> a));
}).collect(Collectors.toMap(s -> s.getWxMpConfigStorage().getAppId(), a -> a, (existing, replace) -> existing));
}
private WxMpMessageRouter newRouter(WxMpService wxMpService) {