wxr
2020-11-20 387383a243879bf8c63a4611e2ed2c5a519e218d
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -1,4 +1,5 @@
using System;
using HDL_ON.DAL.Server;
using HDL_ON.Entity;
using Shared;
@@ -179,8 +180,8 @@
                    {
                        try
                        {
                            var responsePack = new DAL.Server.HttpServerRequest().EditUserName(str);
                            if (responsePack.StateCode.ToUpper() == "SUCCESS")
                            var resultObj = new HttpServerRequest().EditUserName(str);
                            if (resultObj.Code == StateCode.SUCCESS)
                            {
                                MainPage.LoginUser.userName = str;
                                MainPage.LoginUser.SaveUserInfo();
@@ -192,27 +193,8 @@
                            }
                            else
                            {
                                var tipStr = "Server erorr";
                                switch (responsePack.StateCode)
                                {
                                    case "NoLogin":
                                        tipStr = Language.StringByID(StringId.InvalidLoginCertificate);
                                        break;
                                    case "AccountNoExists":
                                        tipStr = "";
                                        break;
                                }
                                Application.RunOnMainThread(() =>
                                {
                                    //提示原因
                                    var tip = new Tip()
                                    {
                                        Text = tipStr,
                                        CloseTime = 1,
                                        Direction = AMPopTipDirection.None
                                    };
                                    tip.Show(bodyView);
                                });
                                //失败提示
                                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_UpdateMemberInfo, resultObj.Code);
                            }
                        }
                        catch (Exception ex)