Commit fb9678e9d3e9f92d8c5c431cdb8563baaf7d54a7
1 parent
b4e7ed0b
修复兼容接口云台控制
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiControlController.java
| ... | ... | @@ -44,6 +44,8 @@ public class ApiControlController { |
| 44 | 44 | logger.debug("模拟接口> 设备云台控制 API调用,deviceId:{} ,channelId:{} ,command:{} ,speed:{} ", |
| 45 | 45 | serial, code, command, speed); |
| 46 | 46 | } |
| 47 | + if (channel == null) {channel = 0;} | |
| 48 | + if (speed == null) {speed = 0;} | |
| 47 | 49 | Device device = storager.queryVideoDevice(serial); |
| 48 | 50 | if (device == null) { |
| 49 | 51 | JSONObject result = new JSONObject(); | ... | ... |