| | |
| | | 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]); |