From a9d1161b1df96e7ddad566335989a1444e433ef5 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 28 三月 2023 11:54:45 +0800 Subject: [PATCH] 2023年03月28日11:52:02 --- HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 25 +++++++++++++++---------- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs index d9b1b60..9cfe721 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs @@ -599,25 +599,30 @@ { //HDL_ON.DriverLayer.Control.Ins.GetMusicDirectory(device); //var palyListName = Music.SendMethod.mMethod.GetListName(device); - var palyList= Music.SendMethod.Current.GetListMusic(device, "hdl_special"); - List<string> musicNameList = new List<string>(); + var palyList= Music.SendMethod.Current.GetSingleSongList(device, "hdl_special",""); + List<string> songNameList = new List<string>(); for (int i = 0; i < palyList.songs.Count; i++) { - var music = palyList.songs[i]; - musicNameList.Add(music.name); + var song = palyList.songs[i]; + songNameList.Add(song.name); } Application.RunOnMainThread(() => { loading.Hide(); PublicInterface publicInterface = new PublicInterface(); - publicInterface.FrameOrVv(this, musicNameList, new List<string> { funTypeView.btnState.Text }, palyList.group, (index2) => + publicInterface.FrameOrVv(this, songNameList, new List<string> { funTypeView.btnState.Text }, palyList.group, (index2) => { - var musicSelecetd = palyList.songs[index2]; + var songSelecetd = palyList.songs[index2]; //鐣岄潰鏄剧ず閫変腑鍊� - funTypeView.btnState.Text = musicSelecetd.name; + funTypeView.btnState.Text = songSelecetd.name; //鏁版嵁灏佽 AddDictionary("playlist_name", palyList.group);//鍒楄〃鍚� - AddDictionary("song_name", musicSelecetd.name);//姝屾洸鍚� + AddDictionary("song_name", songSelecetd.name);//姝屾洸鍚� + if (!string.IsNullOrEmpty(songSelecetd.url)) + { + //瀛樺湪url灏变竴璧峰彂閫佽繃鍘� + AddDictionary("url", songSelecetd.url); + } },false); @@ -741,7 +746,7 @@ break; } - outputDevice.status = dicSateteList; + outputDevice.status.AddRange(dicSateteList); if (edit) { @@ -957,7 +962,7 @@ if (dicList.Count != 0) { //鏈夋暟鎹噸鏂拌祴鍊� - dicSateteList = dicList; + dicSateteList.AddRange(dicList); } if (this.btnDelay != null) { -- Gitblit v1.8.0