From de344cadaa299a585d20488c4ce393f7ec797461 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 05 二月 2021 10:05:13 +0800 Subject: [PATCH] 2021-02-05 10:04:48 --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 80 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 78 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index c5a084d..e526391 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -6,6 +6,8 @@ using Shared; using HDL_ON.Entity; using HDL_ON.DAL.Server; +using System.Security.Cryptography; +using System.Text; namespace HDL_ON.UI.UI1Login { @@ -598,7 +600,7 @@ if (verAccount == etPassword.Text.Trim()) { //璺宠浆椤甸潰---- - MainPage.GoUserPage(); + MainPage.GoUserPage(true); return; } }); @@ -629,8 +631,10 @@ //} Application.RunOnMainThread(() => { + //20201223-鐧诲綍鎴愬姛涔嬪悗锛屽皢涓嬭浇鏁版嵁瀹屾垚鏍囪鏍囪涓篺alse锛岄槻姝富椤垫彁鍓嶅姞杞� + Common.ApiUtlis.Ins.DownloadDataComplete = false; //璺宠浆椤甸潰---- - MainPage.GoUserPage(); + MainPage.GoUserPage(true); }); } else @@ -835,6 +839,15 @@ { btnRegister.MouseUpEventHandler += (sender, e) => { + //2020-12-22 澧炲姞鐐瑰嚮闅愯棌閿洏浜嬩欢 + Application.HideSoftInput(); + + +#if DEBUG + TestEZSDK(); + return; +#endif + //鍒ゆ柇鏄惁鍚屾剰浜嗛殣绉佹斂绛� if (CheckPrivacyPolicy() == false) return; @@ -849,11 +862,65 @@ MainPage.Log($"login callBackAction : {ex.Message}"); } }; + var registerPage = new RegisterPage(autoLoginAction); registerPage.Show(); registerPage.ShowDialog(); }; + } + + + void TestESVideo() + { + +#if __Android__ +#else + //EZSDK.IOS.EZSDK.Go2EZvizMonitor(); + Shared.ESVideoInfo eSVideoInfo = new Shared.ESVideoInfo(); + eSVideoInfo.DeviceName = "瀹ゅ鏈�88"; + eSVideoInfo.ESVideoUUID = "JJY000019VPLLF"; + eSVideoInfo.ESRoomID = 801; + eSVideoInfo.RoomName = "0801"; + Shared.ESVideo.ShowESVideoMonitor(eSVideoInfo); + return; +#endif + + } + + /// <summary> + /// + /// </summary> + /// <param name="signstr"></param> + /// <returns></returns> + static string SignMD5Encrypt(string s) + { + byte[] sign = MD5.Create().ComputeHash(UTF8Encoding.UTF8.GetBytes(s)); + string signstr = string.Empty; + foreach (byte item in sign) + { + signstr += item.ToString("X2"); + } + return signstr.ToLower(); + } + + void TestEZSDK() + { + +#if __Android__ +#else + //璁剧疆瀛愯处鍙稟ccessToken鏂规 + EZSDK.IOS.EZSDK.SetEZAccessToken("ra.cekz6j9y1zg7mqgj3rmb099p49fuf6w3-9keosamseq-00wktld-brmhuciz1"); + + EZSDK.IOS.EZSDK.Go2EZvizMonitor(); + + + //var psw = SignMD5Encrypt("1aa98a90489b4838b966b57018b4b04b#123456"); + + //Utlis.WriteLine("MD5 psw: " + psw); + return; +#endif + } /// <summary> @@ -863,6 +930,14 @@ { btnForgetPassword.MouseUpEventHandler += (sender, e) => { + //2020-12-22 澧炲姞鐐瑰嚮闅愯棌閿洏浜嬩欢 + Application.HideSoftInput(); + +#if DEBUG + TestESVideo(); + return; +#endif + //鍒ゆ柇鏄惁鍚屾剰浜嗛殣绉佹斂绛� if (CheckPrivacyPolicy() == false) return; @@ -878,6 +953,7 @@ MainPage.Log($"login callBackAction : {ex.Message}"); } }; + var forgetPasswordDialog = new ForgetPasswordPage(autoLoginAction); forgetPasswordDialog.Show(); forgetPasswordDialog.ShowDialog(); -- Gitblit v1.8.0