From c8c898b2d1c9f7b9b2d8b6f4f30c0f76c1470ccd Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 07 十二月 2022 14:11:27 +0800
Subject: [PATCH] 修改

---
 ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java b/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java
index 6730d52..a583190 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java
+++ b/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() {

--
Gitblit v1.8.0