hexiao пре 1 година
родитељ
комит
12c84254f1

+ 2 - 0
hazard-admin/src/main/java/com/ozs/web/core/config/CaneraConfig.java

@@ -34,4 +34,6 @@ public class CaneraConfig {
     @Value("${base.wsUrl:http://124.70.58.209:18891}")
     private String wsUrl;
 
+    @Value("${base.recordUrl:http://183.236.39.220:8083}")
+    private String recordUrl;
 }

+ 3 - 1
hazard-admin/src/main/java/com/ozs/web/core/util/CameraUtil.java

@@ -64,6 +64,7 @@ public class CameraUtil {
     private static CmdCameraUtil cUtil;
     private static RedisCache rc;
     private static ServerConfig sc;
+    private static String recordUrl;
 
     public final static String tsFilekey = "mergeVideoTsFile";
 
@@ -458,7 +459,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
     }
 
     public static List<Map<String, Object>> getRecordList(String channel, Date startTm, Date endTm) {
-        return filterRecordList(channel, startTm, endTm, filePath, sc.getUrl() + "/profile/");
+        return filterRecordList(channel, startTm, endTm, filePath, recordUrl + "/profile/");
     }
 
     /**
@@ -783,6 +784,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
         rc = redisCache;
         sc = serverConfig;
         wsUrl = caneraConfig.getWsUrl();
+        recordUrl = caneraConfig.getWsUrl();
     }
 
 

+ 2 - 1
hazard-admin/src/main/resources/application.yml

@@ -1,5 +1,6 @@
 # 项目相关配置
 server-ip: 10.161.12.50
+
 base:
   # 名称
   name: base
@@ -24,7 +25,7 @@ base:
   wsUrl: ws://183.236.39.220:9080
   defaultPassword: yn5aq5Mt.106.tky
   imgUrl: http://${server-ip}:18801/picbucket
-
+  recordUrl: http://183.236.39.220:8083
 # 开发环境配置
 server:
   # 服务器的HTTP端口,默认为8080