[集群-自动切换过国标级联] 修复BUG

dev/数据库统合
648540858 2025-01-02 17:33:10 +08:00
parent 347b2a6a4c
commit 7fb07848ab
1 changed files with 29 additions and 30 deletions

View File

@ -121,7 +121,7 @@ public class PlatformServiceImpl implements IPlatformService {
ServerInfo serverInfo = redisCatchStorage.queryServerInfo(serverId); ServerInfo serverInfo = redisCatchStorage.queryServerInfo(serverId);
if (serverInfo != null) { if (serverInfo != null) {
return; return;
}else { }
log.info("[集群] 检测到 {} 已离线", serverId); log.info("[集群] 检测到 {} 已离线", serverId);
String chooseServerId = redisCatchStorage.chooseOneServer(serverId); String chooseServerId = redisCatchStorage.chooseOneServer(serverId);
if (!userSetting.getServerId().equals(chooseServerId)){ if (!userSetting.getServerId().equals(chooseServerId)){
@ -151,7 +151,6 @@ public class PlatformServiceImpl implements IPlatformService {
log.error("[命令发送失败] 国标级联: {}", e.getMessage()); log.error("[命令发送失败] 国标级联: {}", e.getMessage());
} }
}); });
}
}); });
} }