修复兼容接口云台控制

pull/276/head
648540858 2021-11-30 10:40:22 +08:00
parent b4e7ed0bf7
commit fb9678e9d3
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ public class ApiControlController {
logger.debug("模拟接口> 设备云台控制 API调用deviceId{} channelId{} command{} speed{} ",
serial, code, command, speed);
}
if (channel == null) {channel = 0;}
if (speed == null) {speed = 0;}
Device device = storager.queryVideoDevice(serial);
if (device == null) {
JSONObject result = new JSONObject();