From 4c40f503acf2bcf90d294cc439ef46ba259b9c60 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 02 十二月 2019 09:27:46 +0800
Subject: [PATCH] 新版本,如果 IOS 编译报错,先注释掉

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
index a25457b..0fbe09b 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs
@@ -37,6 +37,7 @@
         /// </summary>
         private CommonDevice deviceObj = null;
         Action action;
+        Action actionNone;
         string modifyDeviceName = "";
         bool IsModifyName = true;
         public Action<string> devicNameAction;
@@ -293,21 +294,18 @@
                  {
                      if (currentIndex == 3)
                      {
-                         if (!UserCenterResourse.Option.DoorUnLockByRemote)
+                         action = async () =>
                          {
-                             SecurityRequest(doorLock, action);
-                         }
-                         else
+                             var temporaryPassword = new Shared.Phone.UserCenter.DoorLock.TemporaryPassword(doorLock);
+                             Shared.Phone.UserView.HomePage.Instance.AddChidren(temporaryPassword);
+                             Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
+                             temporaryPassword.Show();
+                         };
+                         actionNone = async () =>
                          {
-                             action = async () =>
-                             {
-                                 var temporaryPassword = new Shared.Phone.UserCenter.DoorLock.TemporaryPassword(doorLock);
-                                 Shared.Phone.UserView.HomePage.Instance.AddChidren(temporaryPassword);
-                                 Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
-                                 temporaryPassword.Show();
-                             };
-                             HdlCheckLogic.Current.CheckSecondarySecurity(action);
-                         }
+                             Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock, action);
+                         };
+                         HdlCheckLogic.Current.CheckSecondarySecurity(action, actionNone);
                      }
                      else if (currentIndex == 4)
                      {

--
Gitblit v1.8.0