From 9c8baf7e7e1169ebdf7d5f7ed33ab29dd5fcbf18 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 14 十二月 2020 17:45:17 +0800
Subject: [PATCH] 2020-12-14 1.解锁设置问题修复,增加面容ID验证。2.错误码对接增加。

---
 HDL_ON/UI/UI1-Login/LoginPageBLL.cs |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs
index 0be9bde..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,9 +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.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