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/ON.Ios/AppDelegate.cs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Crabtree/ON.Ios/AppDelegate.cs b/Crabtree/ON.Ios/AppDelegate.cs
index 813897b..b7c99bd 100644
--- a/Crabtree/ON.Ios/AppDelegate.cs
+++ b/Crabtree/ON.Ios/AppDelegate.cs
@@ -6,6 +6,7 @@
 using Microsoft.AppCenter.Analytics;
 using Microsoft.AppCenter.Crashes;
 using Shared;
+using Shared.SimpleControl;
 using UIKit;
 using UserNotifications;
 
@@ -256,14 +257,14 @@
             //com.freeview.global.Video.FVapplicationDidBecomeActive (application);
         }
 
-        //DateTime closeTime = DateTime.MinValue;
+        DateTime closeTime = DateTime.MinValue;
         /// <summary>
         /// BusSocketStop
         /// </summary>
         void BusSocketStop ()
         {
             Shared.BusSocket.Stop ();
-            //closeTime = DateTime.Now;
+            closeTime = DateTime.Now;
         }
 
 
@@ -273,6 +274,14 @@
         void BusSocketStart ()
         {
 
+            if (closeTime == DateTime.MinValue) {
+                closeTime = DateTime.Now;
+            } else if (closeTime.AddSeconds (20) < DateTime.Now) {
+                if (CommonPage.IsRemote) {
+                    SmartHome.MqttCommon.DisConnectRemoteMqttClient ("closeTime");
+                }
+            }
+
             //if (closeTime == DateTime.MinValue) {
             //    closeTime = DateTime.Now;
             //} else if (closeTime.AddMinutes (2) > DateTime.Now) {

--
Gitblit v1.8.0