From 2ebaff33420cabdf1c9c2937343185ae4b5ff985 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 08 五月 2020 17:37:27 +0800 Subject: [PATCH] 2020-05-08-1 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs old mode 100755 new mode 100644 index 37601a4..be90ed2 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs @@ -1024,18 +1024,17 @@ /// </summary> private async void NomallyOpenDialog() { - #region 鍚庣画鐗堟湰 - //if (UserCenterResourse.UserInfo.AuthorityNo != 1) - //{ - // this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.OnlyMasterOperate)); - // return; - //} + if (UserCenterResourse.UserInfo.AuthorityNo != 1) + { + this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.OnlyMasterOperate)); + return; + } - //if (!UserCenterResourse.AccountOption.DoorUnLockByRemote) - //{ - // SystemSecondAuthentication(); - // return; - //} + if (!UserCenterResourse.AccountOption.DoorUnLockByRemote) + { + SystemSecondAuthentication(); + return; + } action = () => { @@ -1057,6 +1056,7 @@ UserView.HomePage.Instance.AddChidren(addLogicPage); UserView.HomePage.Instance.PageIndex += 1; addLogicPage.Show(); + addLogicPage.UpdateModeIcon(); addLogicPage.action += (w) => { doorLock.IsDoorLockNormallyMode = w; @@ -1064,8 +1064,7 @@ UpdateNomallyOpenStatus(); }; }; - //HdlCheckLogic.Current.CheckSecondarySecurity(action); - #endregion + HdlCheckLogic.Current.CheckSecondarySecurity(action); } -- Gitblit v1.8.0