From da63ef5b1988c85675d62e853dbce78c163d3736 Mon Sep 17 00:00:00 2001
From: che_shuai <che_shuai@massclouds.com>
Date: 星期五, 22 九月 2023 11:34:10 +0800
Subject: [PATCH] 推流列表-->添加通道 补充播放需要的默认参数  媒体服务器ID,是否本平台推送,是否正在推送(影响播放按钮是否显示)

---
 src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java b/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java
index 3e72e29..77d83ee 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/WVPTimerTask.java
@@ -1,6 +1,6 @@
 package com.genersoft.iot.vmp.conf;
 
-import com.alibaba.fastjson.JSONObject;
+import com.alibaba.fastjson2.JSONObject;
 import com.genersoft.iot.vmp.service.IMediaServerService;
 import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -17,9 +17,6 @@
     @Autowired
     private IMediaServerService mediaServerService;
 
-    @Autowired
-    private UserSetup userSetup;
-
     @Value("${server.port}")
     private int serverPort;
 
@@ -31,6 +28,6 @@
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("ip", sipConfig.getIp());
         jsonObject.put("port", serverPort);
-        redisCatchStorage.updateWVPInfo(userSetup.getServerId(), jsonObject, 3);
+        redisCatchStorage.updateWVPInfo(jsonObject, 3);
     }
 }

--
Gitblit v1.8.0