From 6ad91aa2a784f3a66087d2eed065d7a3b6d66c0d Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 13 十月 2022 14:17:06 +0800 Subject: [PATCH] 2022年10月13日14:16:05 --- HDL_ON/DAL/DriverLayer/Control.cs | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs index 701af66..f27460b 100644 --- a/HDL_ON/DAL/DriverLayer/Control.cs +++ b/HDL_ON/DAL/DriverLayer/Control.cs @@ -837,6 +837,33 @@ new Control_Udp().SendLocalHdlLinkData(sendBytes, aLinkData.id,0); } } + + + /// <summary> + /// 鑾峰彇闊充箰鐩綍 + /// </summary> + public void GetMusicDirectory(Function function) + { + if (Ins.GatewayOnline_Local) + { + var objects = new List<Dictionary<string, string>>(); + var readKey = new Dictionary<string, string>(); + readKey.Add("sid", function.sid); + objects.Add(readKey); + var readDataObj = new AlinkReadFunctionStatusObj() + { + id = Ins.msg_id.ToString(), + objects = objects, + time_stamp = Utlis.GetTimestamp() + }; + var functionControlDataJson = Newtonsoft.Json.JsonConvert.SerializeObject(readDataObj); + var sendBytes = Ins.ConvertSendBodyData($"/base/{DB_ResidenceData.Instance.HomeGateway.gatewayId}/thing/service/MusicPlayGroupListGet/down", functionControlDataJson); + MainPage.Log($"鏈湴閫氳 鍙戦�丠DL-Link鏁版嵁:{functionControlDataJson}"); + new Control_Udp().SendLocalHdlLinkData(sendBytes, readDataObj.id); + } + + } + /// <summary> /// 缃戝叧杩涘叆閰嶇綉妯″紡 /// </summary> -- Gitblit v1.8.0