From 3c9ad99d4a5eeeb53f7380315197e7133f84d10c Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 27 十月 2020 14:57:33 +0800 Subject: [PATCH] 2020-10-27 1V2.510271 1.密码规则修改,修改为:密码必须为8-20个字符,包含字母、数字和符号。 2.APP本地增加登录,密码错误锁定,连续错误5次登录锁定,锁定5分钟。 3.登录界面,增加登录账号的邮箱格式匹配检测。 4.增加iOS越狱和Androidr Root检测,强制关闭APP。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserRoom.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 48 insertions(+), 4 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserRoom.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserRoom.cs index c8cfb7a..6dd2f3a 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserRoom.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserRoom.cs @@ -918,13 +918,16 @@ SelectedTextColor = SkinStyle.Current.TextColor1, }; acRowView.AddChidren (tempDeviceName); + //2020-08-28 澧炲姞闀挎寜淇敼璁惧澶囨敞 + ButtonNameAddMouseLongEventHandler (tempDeviceName, devcieCommon); + tempDeviceName.MouseUpEventHandler += openACControlPageEvent; Button btnMode = new Button () { X = Application.GetRealWidth (20), Y = Application.GetRealHeight (40), - Width = Application.GetRealWidth (100), - Height = Application.GetRealHeight (100), + Width = Application.GetMinRealAverage (100), + Height = Application.GetMinRealAverage (100), Tag = "Mode" }; acRowView.AddChidren (btnMode); @@ -934,8 +937,8 @@ Button btnWind = new Button () { X = btnMode.Right + Application.GetRealWidth (0), Y = Application.GetRealHeight (40), - Width = Application.GetRealWidth (100), - Height = Application.GetRealHeight (100), + Width = Application.GetMinRealAverage (100), + Height = Application.GetMinRealAverage (100), Tag = "Wind" }; acRowView.AddChidren (btnWind); @@ -1031,6 +1034,10 @@ IsMoreLines = true }; fhRowView.AddChidren (tempDeviceName); + + //2020-08-28 澧炲姞闀挎寜淇敼璁惧澶囨敞 + ButtonNameAddMouseLongEventHandler (tempDeviceName, devcieCommon); + tempDeviceName.MouseUpEventHandler += (sender2, e2) => { UserFHPage fhView = new UserFHPage (fh, room); if (roomFilePath == Room.FavoriteRoom) { @@ -1148,6 +1155,13 @@ IsMoreLines = true }; DeviceRowView.AddChidren (btnName); + + //2020-08-28 澧炲姞闀挎寜淇敼璁惧澶囨敞 + ButtonNameAddMouseLongEventHandler (btnName, devcieCommon); + + //btnName.MouseLongEventHandler += (sender, e)=>{ + // RemarkDeviceName (devcieCommon, SimpleControl.CommonPage.MyEncodingUTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (devcieCommon)), btnName); + //}; Button tempSwitch = new Button () { Width = Application.GetMinRealAverage (90), @@ -2364,5 +2378,35 @@ }); }); } + + /// <summary> + /// + /// </summary> + /// <param name="btnName"></param> + /// <param name="devcieCommon"></param> + void ButtonNameAddMouseLongEventHandler (Button btnName,Common devcieCommon) + { + //2020-08-28 澧炲姞闀挎寜淇敼璁惧澶囨敞 + btnName.MouseLongEventHandler += (sender, e) => { + RemarkDeviceName (devcieCommon, SimpleControl.CommonPage.MyEncodingUTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (devcieCommon)), btnName); + }; + } + + /// <summary> + /// + /// </summary> + /// <param name="commonDevice"></param> + /// <param name="commonBytes"></param> + /// <param name="btnEquipment"></param> + void RemarkDeviceName (Common commonDevice, byte[] commonBytes, Button btnEquipment) + { + Action successAction = () => { + GenericDialog.Current.RefreshRemark (commonDevice); + //if (!roomDeviceFilePathList.Contains (filePath)) { + // roomDeviceFilePathList.Add (filePath); + //} + }; + GenericDialog.Current.ShowModifyRemarksDialog (commonDevice, commonBytes, btnEquipment, successAction); + } } } \ No newline at end of file -- Gitblit v1.8.0