[集群-自动切换过国标级联] 修复BUG
parent
347b2a6a4c
commit
7fb07848ab
|
@ -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());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue