From f759dc1e6f49c53733eafda82207c85af18f9931 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 28 五月 2020 15:46:54 +0800
Subject: [PATCH] 2020-05-28-1
---
ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs | 47 +++++++++++++++++++++++++++++++++++++++--------
1 files changed, 39 insertions(+), 8 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
index 06ff44c..9a4ac4b 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
@@ -392,18 +392,49 @@
dialogForm.ComfirmClickEvent += ((textValue) =>
{
dialogForm.CloseDialog();
- if (textValue == "2887")
+ if (textValue.StartsWith("2887") == true)
{
- //寮�鍚殣钘忚彍鍗�
- UserCenterResourse.HideOption.CenterHideMenu = 1;
- this.ShowMassage(ShowMsgType.Tip, "Ok!");
+ 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();
- this.ShowMassage(ShowMsgType.Tip, "Ok!");
}
+ if (textValue == "12349")
+ {
+ //寮哄埗璺宠浆鐪熷疄璁惧鐣岄潰
+ UserCenterResourse.HideOption.GotoRealDeviceForm = 1;
+ }
+ if (textValue == "12348")
+ {
+ //寮哄埗璺宠浆缃戝叧鐣岄潰
+ UserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1;
+ }
+ if (textValue == "abcdef1")
+ {
+ //寮哄埗鍙樻洿甯稿紑妯″紡鐨勬椂闂翠负鍒嗛挓
+ UserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode = 1;
+ }
+
+ this.ShowMassage(ShowMsgType.Tip, "Ok!");
});
}
--
Gitblit v1.8.0