From ed3bfb7462d44747230437717e8673a5192f833f Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 30 十一月 2020 20:34:51 +0800
Subject: [PATCH] 2020-11-30-2

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index e2208cb..41b9bcd 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -1,5 +1,4 @@
 锘縰sing System;
-using HDL_ON.DAL.Server;
 using HDL_ON.Entity;
 using Shared;
 
@@ -180,8 +179,8 @@
                     {
                         try
                         {
-                            var resultObj = new HttpServerRequest().EditUserName(str);
-                            if (resultObj.Code == StateCode.SUCCESS)
+                            var responsePack = new DAL.Server.HttpServerRequest().EditUserName(str);
+                            if (responsePack.StateCode.ToUpper() == "SUCCESS")
                             {
                                 MainPage.LoginUser.userName = str;
                                 MainPage.LoginUser.SaveUserInfo();
@@ -193,8 +192,27 @@
                             }
                             else
                             {
-                                //澶辫触鎻愮ず
-                                IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_UpdateMemberInfo, resultObj.Code);
+                                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);
+                                });
                             }
                         }
                         catch (Exception ex)

--
Gitblit v1.8.0