[集群-自动切换过国标级联] 启动时自动注册上级只注册本平台的上级

This commit is contained in:
648540858
2025-01-02 16:30:02 +08:00
parent d022eb72d6
commit 91b0ba4d5e
5 changed files with 10 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ public class RedisAlarmMsgListener implements MessageListener {
if (ObjectUtils.isEmpty(gbId)) {
if (userSetting.getSendToPlatformsWhenIdLost()) {
// 发送给所有的上级
List<Platform> parentPlatforms = platformService.queryEnablePlatformList();
List<Platform> parentPlatforms = platformService.queryEnablePlatformList(userSetting.getServerId());
if (!parentPlatforms.isEmpty()) {
for (Platform parentPlatform : parentPlatforms) {
try {