From 0899baf669e845df3db693a0a28d67f22214eb77 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 14 十二月 2020 10:40:39 +0800 Subject: [PATCH] 20201214-1 --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index 0998722..879c8c2 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -36,11 +36,11 @@ try { var mGlobalRegionListObj = Newtonsoft.Json.JsonConvert.DeserializeObject<GlobalRegionListRes>(result.Data.ToString()); - if (UserInfo.Current.RequestHttpsHost != mGlobalRegionListObj.regionUrl) + if (OnAppConfig.Instance.RequestHttpsHost != mGlobalRegionListObj.regionUrl) { - UserInfo.Current.RequestHttpsHost = mGlobalRegionListObj.regionUrl; - UserInfo.Current.GlobalRegion = mGlobalRegionListObj; - UserInfo.Current.SaveUserInfo(); + OnAppConfig.Instance.RequestHttpsHost = mGlobalRegionListObj.regionUrl; + OnAppConfig.Instance.GlobalRegion = mGlobalRegionListObj; + OnAppConfig.Instance.SaveConfig(); } } catch { } @@ -695,6 +695,12 @@ // refreshToken = revertData.refreshToken, // userName = revertData.name //}; + if (OnAppConfig.Instance.LastLoginUserId != revertData.userId) + { + OnAppConfig.Instance.LastLoginUserId = revertData.userId; + OnAppConfig.Instance.SaveConfig(); + } + UserInfo.Current.ClearUserInfo(); UserInfo.Current.userType = revertData.userType; UserInfo.Current.AccountString = account; //UserInfo.Current.password = password; @@ -703,10 +709,10 @@ UserInfo.Current.LoginTokenString = revertData.headerPrefix + revertData.accessToken; UserInfo.Current.RefreshToken = revertData.refreshToken; UserInfo.Current.userName = revertData.name; - UserInfo.Current.userMobileInfo = "";//閲嶇疆鐢ㄦ埛鎵嬫満 - UserInfo.Current.userEmailInfo = "";//閲嶇疆鐢ㄦ埛閭 - UserInfo.Current.headImagePagePath = "LoginIcon/2.png";// - UserInfo.Current.CurReginID = ""; + //UserInfo.Current.userMobileInfo = "";//閲嶇疆鐢ㄦ埛鎵嬫満 + //UserInfo.Current.userEmailInfo = "";//閲嶇疆鐢ㄦ埛閭 + //UserInfo.Current.headImagePagePath = "LoginIcon/2.png";// + //UserInfo.Current.CurrentRegion.RegionID = ""; UserInfo.Current.SaveUserInfo(); MainPage.Log("鐧诲綍鎴愬姛銆�"); result = true; -- Gitblit v1.8.0