支持手动添加,为设备设置单独的密码
This commit is contained in:
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
||||
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
||||
import com.genersoft.iot.vmp.service.IDeviceService;
|
||||
import com.genersoft.iot.vmp.storager.IVideoManagerStorage;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.slf4j.Logger;
|
||||
@@ -26,6 +27,8 @@ public class ApiDeviceController {
|
||||
|
||||
@Autowired
|
||||
private IVideoManagerStorage storager;
|
||||
@Autowired
|
||||
private IDeviceService deviceService;
|
||||
|
||||
// @Autowired
|
||||
// private SIPCommander cmder;
|
||||
|
||||
@@ -178,7 +178,7 @@ public class ApiStreamController {
|
||||
result.put("error","未找到流信息");
|
||||
return result;
|
||||
}
|
||||
Device device = deviceService.queryDevice(serial);
|
||||
Device device = deviceService.getDevice(serial);
|
||||
if (device == null) {
|
||||
JSONObject result = new JSONObject();
|
||||
result.put("error","未找到设备");
|
||||
|
||||
Reference in New Issue
Block a user