From 20f70e3446df19bf5d0faaae9f7bd58fd0fc4bcc Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 04 八月 2023 12:06:51 +0800 Subject: [PATCH] 轮询备份 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs index 72ab748..b3c4b09 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs @@ -75,7 +75,10 @@ TextColor = SkinStyle.Current.TextColor1, //Text = account, #if DEBUG - Text = "18926269190@189.cn" + //Text = "crabtreel12019@gmail.com" + //Text = "paanghal@gmail.com" + Text = "kumar.niranjan72@gmail.com" + #endif }; accountView.AddChidren (etAccount); @@ -144,11 +147,13 @@ #if DEBUG int NigelLoginPass = 0; btnLogo.MouseUpEventHandler += (sender, e) => { + etAccount.Text = "460649739@qq.com"; + etPasswrod.Text = "kkkkkk333"; if (NigelLoginPass == 3) { etAccount.Text = @"464027401@qq.com"; etPasswrod.Text = "qqqqqq"; } else if (NigelLoginPass == 5) { - etAccount.Text = @"Jai.singh@havells.com"; + etAccount.Text = @"support6@hdlchina.com.cn"; etPasswrod.Text = "123456"; } NigelLoginPass++; @@ -244,7 +249,7 @@ MainPage.Loading.Start ("Login..."); } }); - if (UserConfig.Instance.internetStatus == 0 || !SystemRemote.checeInternet () ) { + if (UserConfig.Instance.internetStatus == 0 ) { Application.RunOnMainThread (() => { new Tip () { Text = "Network abnormal, unable to connect to the Internet", Direction = AMPopTipDirection.Down , CloseTime = 3}.Show (btnLogo); }); @@ -277,9 +282,11 @@ ID = revertData.UserId, MasterID = revertData.MainUserId, AccountType = revertData.UserType, AccountString = account, Password = password, LastTime = DateTime.Now, AllVisionRegisterDevUserNameGuid = revertData.AllVisionRegisterDevUserNameGuid, Name = revertData.Contact }; - var se = new service.hdlcontrol.com_push.WebServicePush (); - se.VerifySoapHeaderValue = new service.hdlcontrol.com_push.VerifySoapHeader () { Email = MainPage.LoginUser.AccountString, UserMode = 0 }; - se.AddRegId (UserConfig.Instance.tokenID, UserConfig.Instance.phoneName); + + //2021-12-27 鍘绘帀瑙e喅瀹㈡埛鍙嶉iOS 鏃犳硶鐧婚檰闂 + //var se = new service.hdlcontrol.com_push.WebServicePush (); + //se.VerifySoapHeaderValue = new service.hdlcontrol.com_push.VerifySoapHeader () { Email = MainPage.LoginUser.AccountString, UserMode = 0 }; + //se.AddRegId (UserConfig.Instance.tokenID, UserConfig.Instance.phoneName); var requestObj2 = new HomeListObj (); var requestJson2 = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj2); @@ -287,7 +294,8 @@ if (revertObj2.StateCode == "SUCCESS") { var responseDataObj2 = Newtonsoft.Json.JsonConvert.DeserializeObject<List<RegionInfoRes>> (revertObj2.ResponseData.ToString ()); var revertRoomData = responseDataObj2; - if (revertRoomData.Find ((obj) => obj.RegionID == UserConfig.Instance.CurrentRegion.RegionID) == null) { + //2020-04-10 澧炲姞鍒ょ┖澶勭悊 + if (UserConfig.Instance.CurrentRegion == null || revertRoomData.Find ((obj) => obj.RegionID == UserConfig.Instance.CurrentRegion.RegionID) == null) { UserConfig.Instance.CurrentRegion = revertRoomData [0]; UserConfig.Instance.GatewayMAC = revertRoomData [0].MAC; IO.FileUtils.DeleteAllFile (); -- Gitblit v1.8.0