临时提交
This commit is contained in:
@@ -51,7 +51,7 @@ public class ApiControlController {
|
||||
}
|
||||
if (channel == null) {channel = 0;}
|
||||
if (speed == null) {speed = 0;}
|
||||
Device device = deviceService.getDevice(serial);
|
||||
Device device = deviceService.getDeviceByDeviceId(serial);
|
||||
if (device == null) {
|
||||
throw new ControllerException(ErrorCode.ERROR100.getCode(), "device[ " + serial + " ]未找到");
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class ApiControlController {
|
||||
}
|
||||
|
||||
if (channel == null) {channel = 0;}
|
||||
Device device = deviceService.getDevice(serial);
|
||||
Device device = deviceService.getDeviceByDeviceId(serial);
|
||||
if (device == null) {
|
||||
throw new ControllerException(ErrorCode.ERROR100.getCode(), "device[ " + serial + " ]未找到");
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ public class ApiDeviceController {
|
||||
serial, channel, code, fill, timeout);
|
||||
}
|
||||
|
||||
Device device = deviceService.getDevice(serial);
|
||||
Device device = deviceService.getDeviceByDeviceId(serial);
|
||||
String uuid = UUID.randomUUID().toString();
|
||||
String key = DeferredResultHolder.CALLBACK_CMD_PRESETQUERY + (ObjectUtils.isEmpty(code) ? serial : code);
|
||||
DeferredResult<Object> result = new DeferredResult<> (timeout * 1000L);
|
||||
|
||||
@@ -82,7 +82,7 @@ public class ApiStreamController {
|
||||
|
||||
){
|
||||
DeferredResult<JSONObject> result = new DeferredResult<>(userSetting.getPlayTimeout().longValue() + 10);
|
||||
Device device = deviceService.getDevice(serial);
|
||||
Device device = deviceService.getDeviceByDeviceId(serial);
|
||||
if (device == null ) {
|
||||
JSONObject resultJSON = new JSONObject();
|
||||
resultJSON.put("error","device[ " + serial + " ]未找到");
|
||||
@@ -230,7 +230,7 @@ public class ApiStreamController {
|
||||
result.put("error","未找到流信息");
|
||||
return result;
|
||||
}
|
||||
Device device = deviceService.getDevice(serial);
|
||||
Device device = deviceService.getDeviceByDeviceId(serial);
|
||||
if (device == null) {
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("error","未找到设备");
|
||||
|
||||
Reference in New Issue
Block a user