黄学彪
2020-12-16 0d9f64668fd7350d6a21fd157e32009a96d98134
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);
            });
        }