From 652243206427f35a256400a149a1734085824cb9 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 02 九月 2020 17:35:03 +0800 Subject: [PATCH] 2020-09-02-4 --- ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs index f1ae8d1..96ab103 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs @@ -171,13 +171,13 @@ /// <summary> /// 鍙戦�侀獙璇佺爜鍒版墜鏈� /// </summary> - private async void SendCodeToPhone(BottomClickButton btnNext,string areaCode, string phoneNum) + private void SendCodeToPhone(BottomClickButton btnNext,string areaCode, string phoneNum) { var sendCodePra = new SendCodePra(); sendCodePra.Account = phoneNum; sendCodePra.AreaCode = Convert.ToInt32(areaCode); - bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/RegisterSendVerCode", false, sendCodePra); + bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/RegisterSendVerCode", false, sendCodePra); if (flage == false) { return; @@ -215,13 +215,13 @@ }); break; } - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (btnNext != null) { btnNext.Text = waitime + "s" + repeat; } - }); + }, ShowErrorMode.NO); } }); } @@ -234,7 +234,7 @@ /// 楠岃瘉楠岃瘉鐮� /// </summary> /// <returns></returns> - private async void CheckVerificationCode(string code) + private void CheckVerificationCode(string code) { if (this.canCheckCode == false) { @@ -247,7 +247,7 @@ checkCodePra.Code = code; checkCodePra.Account = newPhone; - bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra); + bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra); if (flage == false) { //楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏� @@ -263,12 +263,12 @@ /// <summary> /// 鍙樻洿鎵嬫満鍙� /// </summary> - private async void SaveNewPhoneNumber() + private void SaveNewPhoneNumber() { var pra = new SaveNewPhoneNumPra(); pra.Account = newPhone; - bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAccount", false, pra); + bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAccount", false, pra); if (flage == false) { //缁戝畾鎵嬫満澶辫触 -- Gitblit v1.8.0