zhanghua
2022-12-07 c8c898b2d1c9f7b9b2d8b6f4f30c0f76c1470ccd
修改
1个文件已修改
9 ■■■■■ 已修改文件
ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java
@@ -59,11 +59,10 @@
        return new CommonResult(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage());
    }
    @GetMapping("/video")
    @GetMapping("/Video/{code}/{subType}")
    @ApiOperation(value = "设备获取监控地址")
    @SneakyThrows
    public CommonResult getMonitorAddress(@RequestParam String code,
                                          @RequestParam(required = false) Integer subType,
    public CommonResult getMonitorAddress(@PathVariable String code, @PathVariable Integer subType,
                                          @RequestParam(required = false) String scheme) {
        String clientType = "winpc";
@@ -72,10 +71,10 @@
        if (subType == null) {
            subType = 1;
        }
        if (StringUtils.isNotBlank(scheme)) {
        if (!StringUtils.isNotBlank(scheme)) {
            scheme = "RTSP";
        }
        String monitorUrl = "/videoService/realmonitor/uri?subType=" + subType + "&scheme" + scheme + "&channelId=";
        String monitorUrl = "/videoService/realmonitor/uri?subType=" + subType + "&scheme=" + scheme + "&channelId=";
        RestTemplate restTemplate = new RestTemplate();
        restTemplate.setErrorHandler(new DefaultResponseErrorHandler() {