From 2c1411a48874e4033a538a9725f09c8465536fa8 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 28 八月 2023 19:03:51 +0800
Subject: [PATCH] 2023年08月28日19:03:29

---
 HDL_ON/Entity/Function/Function.cs |   40 +++++++++++++++++++++++++++++++++++++---
 1 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs
index 31a5117..2ef2075 100644
--- a/HDL_ON/Entity/Function/Function.cs
+++ b/HDL_ON/Entity/Function/Function.cs
@@ -860,9 +860,24 @@
                     }
                 }
             }
-            else if (spk == SPK.MusicStandard|| spk == SPK.AvMusic)
+            else if (spk == SPK.MusicStandard || spk == SPK.AvMusic)
             {
-                list.AddRange(attributes);
+                list.Add(new FunctionAttributes
+                {
+                    key = FunctionAttributeKey.OnOff,
+                    curValue = string.Empty,
+                });
+                list.Add(new FunctionAttributes
+                {
+                    key = FunctionAttributeKey.Volume,
+                    curValue = string.Empty,
+                });
+                list.Add(new FunctionAttributes
+                {
+                    key = FunctionAttributeKey.SongName,
+                    curValue = string.Empty,
+                });
+
             }
             else if (spk == SPK.ElectricalTvHisense)
             {
@@ -962,7 +977,8 @@
 
                 switch (attr.key)
                 {
-
+                    case FunctionAttributeKey.SongName:
+                    case FunctionAttributeKey.Volume:
                     case FunctionAttributeKey.SetVolume:
                     case FunctionAttributeKey.Signal:
                     case FunctionAttributeKey.OnOff:
@@ -1611,6 +1627,24 @@
         /// </summary>
         public const string Signal = "signal";
 
+        /// <summary>
+        /// 闊充箰闊抽噺
+        /// </summary>
+        public const string Volume = "volume";
+        /// <summary>
+        /// 姝屾洸鍚�
+        /// </summary>
+        public const string SongName = "song_name";
+        /// <summary>
+        /// 鍒楄〃鍚�
+        /// </summary>
+        public const string PlaylistName = "playlist_name";
+        /// <summary>
+        /// 鎾斁璺緞
+        /// </summary>
+        public const string Url = "url";
+
+
     }
     /// <summary>
     /// 璁惧鍔熻兘oid

--
Gitblit v1.8.0