陈嘉乐
2020-04-27 18b93d511dc764b469d7c4a7e755f7274f89cdb4
ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
@@ -392,18 +392,45 @@
            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 == "0001A")
                {
                    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;
                }
                this.ShowMassage(ShowMsgType.Tip, "Ok!");
            });
        }