Explorar o código

车载心跳监测接口修改

gao.qiang hai 9 meses
pai
achega
e9de623362

+ 10 - 2
vehicle-sdk/src/main/java/com/ozs/controller/upload/GeoHazardMonitorTokenController.java

@@ -726,7 +726,11 @@ public class GeoHazardMonitorTokenController {
                             CameraVos cameraVos = new CameraVos();
                             if (list.get(0).getAlarmType() == 2) {
                                 cameraVos.setCameraCode("huangkangyingshiyunxiangjibianma");
-                                cameraVos.setCurrentStream("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
+                                if (list.get(0).getAlarmMile() == 509915) {
+                                    cameraVos.setCurrentStream("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
+                                } else {
+                                    cameraVos.setCurrentStream("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
+                                }
                             } else {
                                 LambdaQueryWrapper<BaseCameraManagement> base = new LambdaQueryWrapper<>();
                                 if (heartbeatVo.getLineDir() == 1) {
@@ -838,7 +842,11 @@ public class GeoHazardMonitorTokenController {
                             } else {
                                 if (i == 0) {
                                     if (list.get(0).getAlarmType() == 2) {
-                                        alarmListVo.setCameraStream("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
+                                        if (list.get(0).getAlarmMile() == 509915) {
+                                            alarmListVo.setCameraStream("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
+                                        } else {
+                                            alarmListVo.setCameraStream("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
+                                        }
                                     } else {
                                         alarmListVo.setCameraStream("");
                                     }