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/TV/ConfigIRCode.cs | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/TV/ConfigIRCode.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/TV/ConfigIRCode.cs index 2251fb8..5719a2f 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/TV/ConfigIRCode.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/TV/ConfigIRCode.cs @@ -49,6 +49,12 @@ port = common.LoopID.ToString (); } } + + #region 2020-07-03 璁板綍鍥炶矾澶囨敞 + byte [] remakeBytes = CommonPage.MyEncodingGB2312.GetBytes (common.Name); + Array.Copy (remakeBytes, 0, updateInfraredBytes, 6, remakeBytes.Length < 20 ? remakeBytes.Length : 20); + #endregion + bodyView = new FrameLayout () { BackgroundColor = SkinStyle.Current.ViewColor }; @@ -389,7 +395,7 @@ InitBrandView (verticalScrolView, dialog); } catch (Exception ex) { - Console.WriteLine (ex.ToString ()); + Utlis.WriteLine (ex.ToString ()); } finally { MainPage.Loading.Hide (); } @@ -465,7 +471,7 @@ InitInfraredView (); } catch (Exception ex) { - Console.WriteLine ("dbnew3 error :" + ex.ToString ()); + Utlis.WriteLine ("dbnew3 error :" + ex.ToString ()); } finally { MainPage.Loading.Hide (); } @@ -1395,7 +1401,7 @@ infraredString = infraredDataList [infraredDataIndex]; iCode = infraredString.Split ('_') [2]; byteICode = iCode.Substring (0, iCode.IndexOf ("}")).Replace ("{", "").Trim ().Split (','); - Console.WriteLine (iCode); + Utlis.WriteLine (iCode); hByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) / 256); lByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) % 256); InfraredTypeCode = Convert.ToByte (infraredString.Split ('_') [0]); @@ -1438,7 +1444,7 @@ infraredString = infraredDataList [infraredDataIndex]; iCode = infraredString.Split ('_') [2]; byteICode = iCode.Substring (0, iCode.IndexOf ("}")).Replace ("{", "").Trim ().Split (','); - Console.WriteLine (iCode); + Utlis.WriteLine (iCode); hByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) / 256); lByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) % 256); InfraredTypeCode = Convert.ToByte (infraredString.Split ('_') [0]); @@ -1491,7 +1497,7 @@ infraredString = infraredDataList [infraredDataIndex]; iCode = infraredString.Split ('_') [2]; byteICode = iCode.Substring (0, iCode.IndexOf ("}")).Replace ("{", "").Trim ().Split (','); - Console.WriteLine (iCode); + Utlis.WriteLine (iCode); hByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) / 256); lByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) % 256); InfraredTypeCode = Convert.ToByte (infraredString.Split ('_') [0]); -- Gitblit v1.8.0