From acc8caee31c4be90bd38d1af18136b0e84f6fe94 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期五, 27 九月 2024 14:01:19 +0800 Subject: [PATCH] Merge branch 'feature/v2.7_迭代' into feature/V2.7_Google --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 47 ++--------------------------------------------- 1 files changed, 2 insertions(+), 45 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index 096ad5c..46c3048 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -648,24 +648,6 @@ var getResidencesResult = LoadMethod_GetResidences(); if (getResidencesResult) { - /* - * Wait : 鎺ㄩ�佹敞鍐� - */ - - /* - * 鏌ョ湅鏈湴鏄惁瀛樺湪鏁版嵁 - * 瀛樺湪鍒欏鍑� - */ - //var isExis = FileUtils.IsExisFolder(DB_ResidenceData.residenceData.CurReginID); - //if (isExis) - //{ - // FileUtils.DeleteAllFile(); - // string regionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID); - // FileUtils.RestoreRegionFiles(regionRootPath); - // DB_ResidenceData.residenceData.EixtAccount(); - // OnAppConfig.Instance.RefreshUserConfig(); - // SpatialInfo.CurrentSpatial.InitRoomFunction(); - //} Application.RunOnMainThread(() => { //20201223-鐧诲綍鎴愬姛涔嬪悗锛屽皢涓嬭浇鏁版嵁瀹屾垚鏍囪鏍囪涓篺alse锛岄槻姝富椤垫彁鍓嶅姞杞� @@ -677,18 +659,9 @@ } else { - //Application.RunOnMainThread(() => - //{ - // BindingResidencePage page = new BindingResidencePage(); - // MainPage.BaseView.AddChidren(page); - // page.LoadView(); - //}); - - - //2020-11-13 寰呯‘璁� //鑾峰彇浣忓畢澶辫触锛岄噸鏂版爣璁颁负鏈櫥褰曠姸鎬� - UserInfo.Current.LastTime = DateTime.MinValue; + UserInfo.Current.ValidToken = false; UserInfo.Current.SaveUserInfo(); //鐧诲綍澶辫触锛岃鍏堟坊鍔犱綇瀹咃紒 //Utlis.ShowAlertOnMainThread(Language.StringByID(StringId.FailedGetHomeList)); @@ -740,17 +713,6 @@ if (loginResult.Code == StateCode.SUCCESS) { var revertData = Newtonsoft.Json.JsonConvert.DeserializeObject<UserLoginRes>(loginResult.Data.ToString()); - // UserInfo.Current = new UserInfo - //{ - // userType = revertData.userType, - // accountString = account, - // password = password, - // lastTime = DateTime.Now, - // ID = revertData.userId, - // loginTokenString = revertData.headerPrefix + revertData.accessToken, - // refreshToken = revertData.refreshToken, - // userName = revertData.name - //}; if (OnAppConfig.Instance.LastLoginUserId != revertData.userId) { OnAppConfig.Instance.LastLoginUserId = revertData.userId; @@ -759,17 +721,12 @@ UserInfo.Current.ClearUserInfo(); UserInfo.Current.userType = revertData.userType; UserInfo.Current.AccountString = account; - //UserInfo.Current.password = password; - UserInfo.Current.LastTime = DateTime.Now; + UserInfo.Current.ValidToken = true; UserInfo.Current.ID = revertData.userId; UserInfo.Current.LoginTokenString = revertData.headerPrefix + revertData.accessToken; UserInfo.Current.AccessToken = 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.CurrentRegion.RegionID = ""; UserInfo.Current.SaveUserInfo(); MainPage.Log("鐧诲綍鎴愬姛銆�"); #if __IOS__ -- Gitblit v1.8.0