修复点播接口状态判断错误

This commit is contained in:
648540858 2023-11-06 15:13:58 +08:00
parent 58b333604d
commit c1bc45fe8f

View File

@ -92,7 +92,7 @@ public class ApiStreamController {
result.put("error","device[ " + serial + " ]未找到");
resultDeferredResult.setResult(result);
return resultDeferredResult;
}else if (device.isOnLine()) {
}else if (!device.isOnLine()) {
JSONObject result = new JSONObject();
result.put("error","device[ " + code + " ]offline");
resultDeferredResult.setResult(result);