优化自动点播判断逻辑

This commit is contained in:
648540858 2023-12-06 22:31:26 +08:00
parent a01295603a
commit bdd1846eb4

View File

@ -593,7 +593,7 @@ public class ZLMHttpHookListener {
String deviceId = s[0];
String channelId = s[1];
Device device = redisCatchStorage.getDevice(deviceId);
if (device == null) {
if (device == null || !device.isOnLine()) {
defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg()));
return defaultResult;
}