From 6f16607efe766271c69a4f3f96fb928fe25f112c Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期五, 01 十一月 2019 16:22:13 +0800 Subject: [PATCH] 2019-11-01-2 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UndistributeDoorlockUserPage.cs | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UndistributeDoorlockUserPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UndistributeDoorlockUserPage.cs index b43c2b8..a2400e0 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UndistributeDoorlockUserPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UndistributeDoorlockUserPage.cs @@ -54,6 +54,11 @@ foreach (var curAccountObj in doorLock.localAllAccountList) { + if (UserCenterResourse.UserInfo.AuthorityNo != 1) + { + localDoorLockObj.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + localDoorLockObj.IsOtherAccountCtrl = true; + } localDoorLockObj.CloudAccountId = curAccountObj.SubAccountDistributedMark; if (doorLock.DeviceAddr != null) { @@ -80,6 +85,10 @@ } } } + } + else + { + } } catch { } @@ -463,6 +472,11 @@ else { var addLockInfo = new ZigBee.Device.DoorLock.AddDoorLockData(); + if (UserCenterResourse.UserInfo.AuthorityNo != 1) + { + addLockInfo.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + addLockInfo.IsOtherAccountCtrl = true; + } addLockInfo.CloudAccountId = curAccountId; if (doorLock.DeviceAddr != null) { -- Gitblit v1.8.0