From 894d18bb13dae351028e584f9b73a8d6964a0a50 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Wed, 19 Nov 2025 13:51:17 +0800
Subject: [PATCH] 2025-11-15 zwy 航线信息被删掉后,航线任务列表在读取航线时会报错;处理错误,航线不存在时航线文件名称显示空。正常逻辑应该是航线文件有任务在用,就不能随意删除;
---
ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java b/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
index 1e0f8f1..b3d901a 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
@@ -73,16 +73,17 @@
@ApiOperation("获取video_id")
@PostMapping("/videoid/{sn}")
- public String getVideoId(@PathVariable String sn) {
- String videoId = "";
+ public ResponseResult<LiveTypeDTO> getVideoId(@PathVariable String sn) {
+ LiveTypeDTO liveTypeDTO = new LiveTypeDTO();
try{
- videoId = _liveStreamHandler.getLiveParam(sn).getVideoId();
+ liveTypeDTO = _liveStreamHandler.getLiveParam(sn);
+
}
catch (Exception e){
- videoId = e.getMessage();
+ // videoId = e.getMessage();
e.printStackTrace();
}
- return videoId;
+ return ResponseResult.success(liveTypeDTO);
}
/**
--
Gitblit v1.9.3