From ba967da3b2d0d2f277113602e1d67ef848b7bb9a Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Tue, 25 Nov 2025 14:33:52 +0800
Subject: [PATCH] 2025-11-25 zwy 增加rth_mode字段,默认为1;实体和DTO中增加@JsonInclude(JsonInclude.Include.NON_NULL)序列化时忽略所有 null 字段
---
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