فهرست منبع

修复兼容接口云台控制

648540858 3 سال پیش
والد
کامیت
fb9678e9d3
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiControlController.java

+ 2 - 0
src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiControlController.java

@@ -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();