HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-06-10 dce6c3481a37216292724013ff9d2b75ceb82f86
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs
@@ -607,26 +607,28 @@
                    var SubAccounListTemp = await ZigBee.Device.DoorLock.GetSubAccountByDistributedMark();
                    var SubAccounListDictionary = new Dictionary<string, Shared.Phone.UserCenter.MemberInfoRes> { };
                    foreach (var member in SubAccounListTemp)
                    {
                        //判断一个账户绑定了邮箱的情况
                        if (SubAccounListDictionary.ContainsKey(member.DistributedMark) == true
                        || member.Account == UserCenterResourse.UserInfo.Phone
                        || member.Account == UserCenterResourse.UserInfo.Email)
                        {
                            //如果是它自己的话,不显示,账户和绑定的邮箱只显示其中之一
                            continue;
                    if (SubAccounListTemp != null)
                    {
                        foreach (var member in SubAccounListTemp)
                        {
                            //判断一个账户绑定了邮箱的情况
                            if (SubAccounListDictionary.ContainsKey(member.DistributedMark) == true
                            || member.Account == UserCenterResourse.UserInfo.Phone
                            || member.Account == UserCenterResourse.UserInfo.Email)
                            {
                                //如果是它自己的话,不显示,账户和绑定的邮箱只显示其中之一
                                continue;
                            }
                            //去掉子账户中普通成员,留下拥有管理员权限的成员
                            //(因为分配账户给普通成员,普通成员在app中不能进入设备管理那里,所以没发查看主人分配对账户)
                            if (member.AccountType != 1)
                            {
                                continue;
                            }
                            SubAccounListDictionary.Add(member.DistributedMark, member);
                        }
                        //去掉子账户中普通成员,留下拥有管理员权限的成员
                        //(因为分配账户给普通成员,普通成员在app中不能进入设备管理那里,所以没发查看主人分配对账户)
                        if (member.AccountType != 1)
                        {
                            continue;
                        }
                        SubAccounListDictionary.Add(member.DistributedMark, member);
                    }
                    foreach (var addMemberID in SubAccounListDictionary.Keys)
                    {
                        SubAccounList.Add(SubAccounListDictionary[addMemberID]);