Browse Source

报警接口修改

gao.qiang 10 months ago
parent
commit
22d0076f87

+ 5 - 1
vehicle-admin/src/main/java/com/ozs/web/controller/accountmanagment/MsgAlarmController.java

@@ -378,7 +378,11 @@ public class MsgAlarmController extends BaseController {
             if (msgAlarm.getAlarmType() == 2) {
                 msgAlarmResp.setAlarmUrl("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
             }else {
-                msgAlarmResp.setAlarmUrl(CameraUtil.getPlayFlv(baseCameraManagement.getCameraCode(), "channel"));
+                if (StringUtils.isNotEmpty(baseCameraManagement.getCameraCode())) {
+                    msgAlarmResp.setAlarmUrl(CameraUtil.getPlayFlv(baseCameraManagement.getCameraCode(), "channel"));
+                }else {
+                    return success("该报警信息无匹判断相机");
+                }
             }
             return AjaxResult.success(msgAlarmResp);
         } else {