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/OtherParty/OtherPartyAccountMenuForm.cs |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/OtherParty/OtherPartyAccountMenuForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/OtherParty/OtherPartyAccountMenuForm.cs
index 7ccbfb4..686de8b 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/OtherParty/OtherPartyAccountMenuForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/OtherParty/OtherPartyAccountMenuForm.cs
@@ -41,12 +41,12 @@
             //娓呯┖bodyFrame
             this.ClearBodyFrame();
 
-            HdlThreadLogic.Current.RunThread(async () =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 //鎵撳紑杩涘害鏉�
                 this.ShowProgressBar();
                 //鑾峰彇缁戝畾鏁版嵁
-                var result = await this.GetBingData();
+                var result = this.GetBingData();
                 if (result == false)
                 {
                     //鍏抽棴杩涘害鏉�
@@ -173,12 +173,12 @@
         /// 鑾峰彇缁戝畾鏁版嵁
         /// </summary>
         /// <returns></returns>
-        private async Task<bool> GetBingData()
+        private bool GetBingData()
         {
             this.dicBindData = new Dictionary<string, OtherPartyResult>();
 
-            var result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetUserAuthItem", false, "");
-            if (result == null)
+            var result = UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetUserAuthItem", false, "");
+            if (string.IsNullOrEmpty(result) == true)
             {
                 return false;
             }
@@ -223,12 +223,12 @@
         /// 缁戝畾寰俊
         /// </summary>
         /// <param name="infoData"></param>
-        private async void BindWechat(string accessToken, string refreshToken, string openID)
+        private void BindWechat(string accessToken, string refreshToken, string openID)
         {
             //鑾峰彇寰俊鏄电О
             var strUrl = "https://api.weixin.qq.com/sns/userinfo?access_token=" + accessToken;
             strUrl += "&openid=" + openID;
-            var byteData = await Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, null, "GET");
+            var byteData = Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, null, "GET");
             if (byteData == null)
             {
                 return;
@@ -239,7 +239,7 @@
             //鍏堜笂浼犲井淇¤祫鏂�
             var pra = new { AccessToken = accessToken, RefreshToken = refreshToken, OpenID = openID, UserName = nickData.nickname };
             var listNotShow = new List<string>() { "UserNoBindAccount" };
-            var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/InsertOrUpdateAuthUser", false, pra, listNotShow);
+            var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/InsertOrUpdateAuthUser", false, pra, listNotShow);
             if (result == false)
             {
                 return;
@@ -247,7 +247,7 @@
 
             //鍐嶆墽琛岀粦瀹�
             var pra2 = new { AccountGuid = Common.Config.Instance.Guid, OpenID = openID };
-            result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAuthUserToAccount", false, pra2);
+            result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/BindAuthUserToAccount", false, pra2);
             if (result == true)
             {
                 //缁戝畾鎴愬姛锛佷笅娆′綘鍙互鐢ㄥ井淇0}璐﹀彿蹇�熺櫥褰曞暒
@@ -267,10 +267,10 @@
         /// 瑙i櫎缁戝畾
         /// </summary>
         /// <param name="infoData"></param>
-        private async void UnBindOtherParty(OtherPartyResult infoData)
+        private void UnBindOtherParty(OtherPartyResult infoData)
         {
             var pra = new { DistributedMark = infoData.Id };
-            var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UnBindUserAuth", false, pra);
+            var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UnBindUserAuth", false, pra);
             if (result == true)
             {
                 //閲嶆柊鍒锋柊鐣岄潰

--
Gitblit v1.8.0