WJC
2019-10-25 67aea08d675c88fe5c4b8362efc131d1292630f7
ZigbeeApp/Shared/Phone/Device/Category/Category.cs
old mode 100755 new mode 100644
@@ -1975,34 +1975,19 @@
            CommonPage.Loading.Start();
            if (Common.Logic.LogicList.Count == 0)
            {
                //var Idlist = await Logic.Send.GetLogicId();
                //if (Idlist.Count != 0)
                //{
                //    foreach (var LogicId in Idlist)
                //    {
                //        var logic = await Logic.Send.GetLogic(LogicId);
                //        if (logic != null)
                //        {
                //            Common.Logic.LogicList.Add(logic);
                //        }
                //    }
                //}
                var Idlist = await Logic.Send.GetLogicId();
                var Idlist = await Logic.Send.GetLogicId(0);
                if (Idlist.Count != 0)
                {
                    var listlogic = await Logic.Send.ReadList(Idlist.Count);
                    for (int i = 0; i < Idlist.Count; i++)
                    {
                        var LogicId = Idlist[i];
                    var listlogic = await Logic.Send.ReadList(Idlist.Count,0);
                        //foreach可能集合已被修改,枚举操作可能不会执行,可能出现崩溃(建议for)。
                        for (int j = 0; j < listlogic.Count; j++)
                        {
                            var logic = listlogic[j];
                            if (logic.LogicId == LogicId)
                        if (logic.LogicType != 0)
                            {
                            continue;
                        }
                                Common.Logic.LogicList.Add(logic);
                            }
                        }
                    }
                }
            }