Commit bdd1846eb47ced933807c4775d9ae982325e2da2

Authored by 648540858
1 parent a0129560

优化自动点播判断逻辑

src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
@@ -593,7 +593,7 @@ public class ZLMHttpHookListener { @@ -593,7 +593,7 @@ public class ZLMHttpHookListener {
593 String deviceId = s[0]; 593 String deviceId = s[0];
594 String channelId = s[1]; 594 String channelId = s[1];
595 Device device = redisCatchStorage.getDevice(deviceId); 595 Device device = redisCatchStorage.getDevice(deviceId);
596 - if (device == null) { 596 + if (device == null || !device.isOnLine()) {
597 defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg())); 597 defaultResult.setResult(new HookResult(ErrorCode.ERROR404.getCode(), ErrorCode.ERROR404.getMsg()));
598 return defaultResult; 598 return defaultResult;
599 } 599 }