From 26cee91cc3332e09db5cadb9faf76612b1b0c081 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 11 五月 2020 11:22:34 +0800
Subject: [PATCH] 2020-05-11-1

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs |   26 +++++++++++++-------------
 1 files changed, 13 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..d0818b5
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs
@@ -770,6 +770,7 @@
         /// </summary>
         public void ClickHandle()
         {
+          
             //闂ㄩ攣鏍囬
             btnDoorLockTitle.Text = Common.LocalDevice.Current.GetDeviceMacName(doorLock);
 
@@ -1024,18 +1025,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 +1057,7 @@
                 UserView.HomePage.Instance.AddChidren(addLogicPage);
                 UserView.HomePage.Instance.PageIndex += 1;
                 addLogicPage.Show();
+               
                 addLogicPage.action += (w) =>
                 {
                     doorLock.IsDoorLockNormallyMode = w;
@@ -1064,8 +1065,7 @@
                     UpdateNomallyOpenStatus();
                 };
             };
-            //HdlCheckLogic.Current.CheckSecondarySecurity(action);
-            #endregion
+            HdlCheckLogic.Current.CheckSecondarySecurity(action);
 
 
         }

--
Gitblit v1.8.0