mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 22:47:49 +08:00
[集群-自动切换过国标级联] 修复BUG
This commit is contained in:
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
Block a user