From f23ad1b3f9f6193f35f72104d690b21dc67d5c1f Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 06 七月 2020 12:35:25 +0800 Subject: [PATCH] 去掉了访问外网的异步 --- ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs index 7b002f1..21b346c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs @@ -317,7 +317,7 @@ /// 鏇存柊鐢ㄦ埛鍚� /// </summary> /// <param name="txtName"></param> - private async void SaveUserName(TextInputControl txtName, bool showMsg) + private void SaveUserName(TextInputControl txtName, bool showMsg) { if (UserCenterResourse.UserInfo.UserName == string.Empty) { @@ -334,7 +334,7 @@ var pra = new SaveUserNamePra(); pra.UserName = UserCenterResourse.UserInfo.UserName; - bool result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateUserName", false, pra); + bool result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateUserName", false, pra); if (result == false) { return; @@ -403,10 +403,10 @@ /// </summary> /// <param name="btnUser"></param> /// <param name="imagePath"></param> - private async void UpLoadUserIconFile(ImageView btnUser, string imagePath) + private void UpLoadUserIconFile(ImageView btnUser, string imagePath) { var pra = new { HeadImage = Shared.IO.FileUtils.ReadFile(imagePath) }; - var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateHeadImage", false, pra); + var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateHeadImage", false, pra); if (result == true) { UserCenterResourse.UserInfo.UserIconFileChanged = true; -- Gitblit v1.8.0