[集群-自动切换过国标级联] 修复BUG
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user