From a2e7e8ff9cfaa69b001d483710bddbda50d55c91 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Mon, 01 Jun 2026 16:14:19 +0800
Subject: [PATCH] 优化

---
 ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/impl/SourcePlayServiceImpl.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/impl/SourcePlayServiceImpl.java b/ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/impl/SourcePlayServiceImpl.java
index 904d463..b55ce9a 100644
--- a/ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/impl/SourcePlayServiceImpl.java
+++ b/ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/impl/SourcePlayServiceImpl.java
@@ -2,6 +2,7 @@
 
 import com.ard.common.core.constant.HttpStatus;
 import com.ard.qs.api.domain.QsDevice;
+import com.ard.work.api.domian.ArdChannel;
 import com.ard.zlm.api.domain.StreamInfo;
 import com.ard.zlm.service.ErrorCallback;
 import com.ard.zlm.service.IMediaServerService;
@@ -26,11 +27,11 @@
     private IMediaServerService mediaServerService;
 
     @Override
-    public void play(QsDevice device, Boolean record, ErrorCallback<StreamInfo> callback) {
+    public void play(ArdChannel ardChannel, Boolean record, ErrorCallback<StreamInfo> callback) {
         try {
-            mediaServerService.play(device, record, callback);
+            mediaServerService.play(ardChannel, record, callback);
         } catch (Exception e) {
-            log.error("[点播失败] {}({})", device.getDeviceName(), device.getId(), e);
+            log.error("[点播失败] {}({})", ardChannel.getName(), ardChannel.getId(), e);
             callback.run(HttpStatus.ERROR, "播放失败", null);
         }
     }

--
Gitblit v1.9.3