From 82fab9daa174a3028d0f7dd3549ef8bd3760bbce Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 26 四月 2023 13:40:53 +0800 Subject: [PATCH] 2023年04月26日13:40:35 --- HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs index 8f4b4bc..0cf91cc 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs @@ -1072,11 +1072,11 @@ try { var faceIdList = Send.Current.GetListHomeFace(device.deviceId, true); - + CommonMethod.Current.MainThread(() => { loading.Hide(); - string stateValue=btnState.Tag==null?"":btnState.Tag.ToString(); + string stateValue = btnState.Tag == null ? "" : btnState.Tag.ToString(); PublicInterface publicInterface = new PublicInterface(); publicInterface.MultiSelectShow(this, faceIdList, device.name, stateValue, (indexeList) => { @@ -1087,12 +1087,14 @@ string tag = string.Empty; //鏁版嵁灏佽 AddDictionary("open_type", "1", "integer"); - for (int indexe = 0; indexe < indexeList.Count; indexe++) + for (int i = 0; i < indexeList.Count; i++) { - if (indexe > faceIdList.Count) + + if (i > faceIdList.Count) { continue; } + var indexe = indexeList[i]; var face = faceIdList[indexe]; AddDictionary("user_id", face.userId, "string"); s += face.userName; @@ -1151,14 +1153,14 @@ dicSateteList.Clear(); string s = string.Empty; string tag = string.Empty; - for (int indexe = 0; indexe < indexeList.Count; indexe++) + for (int i = 0; i < indexeList.Count; i++) { - if (indexe > faceIdList.Count) + if (i > faceIdList.Count) { continue; } + var indexe = indexeList[i]; var face = faceIdList[indexe]; - //鏁版嵁灏佽<楂樿儨璇磋悿鐭抽偅杈规槸鎺ㄩ�佺敤鎴峰悕> AddDictionary("open_user", face.userName, "string"); s += face.userName; -- Gitblit v1.8.0