From a4f57bf9dda3d52e04f537a2ca24db95761eb888 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 11 十二月 2020 11:34:14 +0800 Subject: [PATCH] Revert "Merge branch 'CJL-NEW' into NewFilePath" --- HDL_ON/Entity/FunctionList.cs | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index 37990d5..06fcf7a 100644 --- a/HDL_ON/Entity/FunctionList.cs +++ b/HDL_ON/Entity/FunctionList.cs @@ -349,6 +349,24 @@ } /// <summary> + /// 鍔熻兘缁戝畾鎴块棿 + /// </summary> + public string FunctionsBindRooms(List<string> roomIds,List<string> deviceIds) + { + var pm = new HttpServerRequest(); + var pack = pm.BindDeviceToRoom(deviceIds, roomIds); + if(pack.Code == StateCode.SUCCESS) + { + + } + else + { + Utlis.ShowTip(Shared.Language.StringByID(StringId.EditFunctionInfoFail) + "\r\nCode:" + pack.Code); + } + return pack.Code; + } + + /// <summary> /// 涓嬫潵浜戠璁惧鏁版嵁 /// </summary> public void DownloadFunctionList() @@ -372,7 +390,7 @@ //{ IsBackground = true }.Start(); for (int i =0;i < List.GetAllDeviceFunctionList().Count;) { - var localFunction = List.GetAllDeviceFunctionList()[0]; + var localFunction = List.GetAllDeviceFunctionList()[i]; var newFunction = deviceList.list.Find((obj) => obj.deviceId == localFunction.deviceId); if (newFunction == null)//濡傛灉浜戠鏈�鏂版暟鎹病鏈夎鏉℃暟鎹紝鍒欐湰鍦伴渶瑕佸垹鎺夎鏁版嵁璁板綍 { @@ -400,7 +418,7 @@ List.IniFunctionList(newFunction.savePath); } } - MainPage.Log($"璇诲彇浜戠璁惧鏁版嵁:\r\n{ pack.Data.ToString()}"); + //MainPage.Log($"璇诲彇浜戠璁惧鏁版嵁:\r\n{ pack.Data.ToString()}"); } else { @@ -421,7 +439,7 @@ var pack = pm.GetSceneList(); if(pack.Code == StateCode.SUCCESS) { - MainPage.Log($"璇诲彇浜戠鍦烘櫙鏁版嵁:\r\n{pack.Data.ToString()}"); + //MainPage.Log($"璇诲彇浜戠鍦烘櫙鏁版嵁:\r\n{pack.Data.ToString()}"); var sceneList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Scene>>(pack.Data.ToString()); if (sceneList != null) { -- Gitblit v1.8.0