From 0d9f64668fd7350d6a21fd157e32009a96d98134 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 16 十二月 2020 13:09:08 +0800
Subject: [PATCH] 新云端代码Ver1.2

---
 ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberByIdForm.cs |   18 +++++-------------
 1 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberByIdForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberByIdForm.cs
index 89cf08e..d2d23d3 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberByIdForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberByIdForm.cs
@@ -47,7 +47,7 @@
 
             //璇疯緭鍏ラ渶瑕佸姞鍏ユ垚鍛樼殑ID(Email/鎵嬫満鍙�)
             var txtCode = new TextInputControl(Application.GetRealWidth(900), rowAccount.Height, false);
-            txtCode.X = ControlCommonResourse.XXLeft;
+            txtCode.X = HdlControlResourse.XXLeft;
             txtCode.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputAddMenberID);
             rowAccount.AddChidren(txtCode, ChidrenBindMode.NotBind);
             //鑱斿姩绾跨殑鐘舵��
@@ -88,19 +88,15 @@
             //寮�鍚繘搴︽潯
             this.ShowProgressBar();
 
-            var pra = new AccountInfoPra();
-            pra.Account = accountId;
-            var byteData = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new System.Collections.Generic.List<string>() { "AccountNoExists" });
+            var result = HdlMemberLogic.Current.SearchNormalInfoByAccount(accountId);
             //鍏抽棴杩涘害鏉�
             this.CloseProgressBar();
 
-            if (byteData == null)
+            if (result == null)
             {
-                //寮傚父
                 return;
             }
-            var revertObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.ResponseEntity.ResponsePack>(System.Text.Encoding.UTF8.GetString(byteData));
-            if (revertObj.StateCode == "AccountNoExists")
+            if (result.Account == string.Empty)
             {
                 HdlThreadLogic.Current.RunMain(() =>
                 {
@@ -108,17 +104,13 @@
                     var form = new MemberNotEsixtForm();
                     form.AddForm(Language.StringByID(R.MyInternationalizationString.uMemberInformation));
                 });
-
                 return;
             }
-
-            var infoResult = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountInfoResult>(revertObj.ResponseData.ToString());
-            infoResult.Account = accountId;
 
             HdlThreadLogic.Current.RunMain(() =>
             {
                 var form = new AddMemberInfoForm();
-                form.AddForm(infoResult);
+                form.AddForm(result);
             });
         }
 

--
Gitblit v1.8.0