From be95e839f40eb3ddf64706b60cba6dfcf4fad5e5 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 03 四月 2020 14:31:44 +0800 Subject: [PATCH] 2020-04-03 1.去掉登录前ping百度域名的网络监测。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs index 66a2c6d..7d66fc3 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs @@ -73,7 +73,7 @@ Button btnUserIcon = new Button () { X = Application.GetRealWidth (27), Width = Application.GetRealWidth (96), - Height = Application.GetRealHeight (96), + Height = Application.GetRealWidth (96), Gravity = Gravity.CenterVertical, Radius = 5, BorderColor = SkinStyle.Current.Transparent, @@ -225,7 +225,7 @@ var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); - var revertObj = MainPage.RequestHttps (API.DeletedSubAccount, requestJson, true); + var revertObj = MainPage.RequestHttps (API.DeletedSubAccount, requestJson); if (revertObj.StateCode.ToUpper() == "SUCCESS") { Application.RunOnMainThread (() => { subaccountList.Remove (subaccount); @@ -433,14 +433,14 @@ }; var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); - var revertObj = MainPage.RequestHttps (API.BindSubAccount, requestJson, true); + var revertObj = MainPage.RequestHttps (API.BindSubAccount, requestJson); if (revertObj.StateCode.ToUpper () == "SUCCESS") { var requestObj2 = new GetSubAccountByDistributedMarkObj () { DistributedMark = UserConfig.Instance.CurrentRegion.Id, }; //var requestObj2 = new GetSubAccountListObj (); var requesetJson2 = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj2); - var requesetRevertObj2 = MainPage.RequestHttps (API.GetSubAccountByDistributedMark, requesetJson2, true); + var requesetRevertObj2 = MainPage.RequestHttps (API.GetSubAccountByDistributedMark, requesetJson2); if (requesetRevertObj2.StateCode.ToUpper () == "SUCCESS") { var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<SubAccountRes>> (requesetRevertObj2.ResponseData.ToString ()); subaccountList = responseDataObj; @@ -463,7 +463,7 @@ new Alert ("", Language.StringByID (R.MyInternationalizationString.FailureToServer), Language.StringByID (R.MyInternationalizationString.Close)).Show (); }); - Console.WriteLine (ex.ToString()); + Utlis.WriteLine (ex.ToString()); } finally { Application.RunOnMainThread (() => { MainPage.Loading.Hide (); -- Gitblit v1.8.0