修复点播接口状态判断错误
parent
58b333604d
commit
c1bc45fe8f
|
@ -92,7 +92,7 @@ public class ApiStreamController {
|
||||||
result.put("error","device[ " + serial + " ]未找到");
|
result.put("error","device[ " + serial + " ]未找到");
|
||||||
resultDeferredResult.setResult(result);
|
resultDeferredResult.setResult(result);
|
||||||
return resultDeferredResult;
|
return resultDeferredResult;
|
||||||
}else if (device.isOnLine()) {
|
}else if (!device.isOnLine()) {
|
||||||
JSONObject result = new JSONObject();
|
JSONObject result = new JSONObject();
|
||||||
result.put("error","device[ " + code + " ]offline");
|
result.put("error","device[ " + code + " ]offline");
|
||||||
resultDeferredResult.setResult(result);
|
resultDeferredResult.setResult(result);
|
||||||
|
|
Loading…
Reference in New Issue