From 2be70a32d2a8c517bd9868fb60913fcc843e66fe Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 13 五月 2020 11:21:32 +0800
Subject: [PATCH] 上传代码

---
 ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
index 5c4653d..4fa2c8c 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
@@ -392,21 +392,42 @@
             dialogForm.ComfirmClickEvent += ((textValue) =>
             {
                 dialogForm.CloseDialog();
-                if (textValue == "2887")
+                if (textValue.StartsWith("2887") == true)
                 {
-                    //寮�鍚殣钘忚彍鍗�
-                    UserCenterResourse.HideOption.CenterHideMenu = 1;
+                    var myTime = DateTime.Now;
+                    string strTime1 = myTime.ToString("HHmm");
+                    int value1 = Convert.ToInt32(strTime1.Substring(3, 1));
+                    string check1 = "2887" + strTime1 + (7 + value1).ToString();
+
+                    myTime = myTime.AddMinutes(-1);
+                    string strTime2 = myTime.ToString("HHmm");
+                    int value2 = Convert.ToInt32(strTime2.Substring(3, 1));
+                    string check2 = "2887" + strTime2 + (7 + value2).ToString();
+
+                    myTime = myTime.AddMinutes(2);
+                    string strTime3 = myTime.ToString("HHmm");
+                    int value3 = Convert.ToInt32(strTime3.Substring(3, 1));
+                    string check3 = "2887" + strTime3 + (7 + value3).ToString();
+
+                    if (textValue == check1 || textValue == check2 || textValue == check3)
+                    {
+                        //寮�鍚殣钘忚彍鍗�
+                        UserCenterResourse.HideOption.CenterHideMenu = 1;
+                    }
                 }
-                if (textValue == "0001")
+                if (textValue == "1")
                 {
-                    var form = new Guide.GuideHouseForm();
-                    form.ShowFrom();
                 }
                 if (textValue == "12349")
                 {
                     //寮哄埗璺宠浆鐪熷疄璁惧鐣岄潰
                     UserCenterResourse.HideOption.GotoRealDeviceForm = 1;
                 }
+                if (textValue == "12348")
+                {
+                    //寮哄埗璺宠浆缃戝叧鐣岄潰
+                    UserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1;
+                }
                 this.ShowMassage(ShowMsgType.Tip, "Ok!");
             });
         }

--
Gitblit v1.8.0