wxr
2021-12-15 e71c57108e6dd407c2c6f0361f68150f2ff9aed5
HDL_ON/Common/UserInfo.cs
@@ -5,6 +5,7 @@
using System.Drawing;
using HDL_ON.DAL;
using HDL_ON.DAL.Server;
using Shared;
namespace HDL_ON
{
@@ -22,8 +23,42 @@
        {
            get
            {
                //Dome模式
                if (MainPage.NoLoginMode)
                {
                    if (Language.CurrentLanguage == "Chinese")
                    {
                        m_Current = new UserInfo()
                        {
                            ID = "1234567890",
                            userName = "体验账号",
                            AccountString = "体验账号",
                            userMobileInfo = "体验账号",
                            userEmailInfo = "体验账号",
                            language = "Chinese",
                            areaCode = "86",
                            headImagePagePath = "LoginIcon/2.png",
                        };
                    }
                    else
                    {
                        m_Current = new UserInfo()
                        {
                            ID = "1234567890",
                            userName = "Trial account",
                            AccountString = "Trial account",
                            userMobileInfo = "Trial account",
                            userEmailInfo = "Trial account",
                            language = "English",
                            areaCode = "86",
                            headImagePagePath = "LoginIcon/2.png",
                        };
                    }
                    return m_Current;
                }
                if (m_Current == null)
                {
                    try
                    {
                        UserInfo temp = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfo>(
@@ -111,10 +146,6 @@
        /// </summary>
        public List<RegionInfoRes> regionList = new List<RegionInfoRes>();
        /// <summary>
        /// 当前选择的住宅索引
        /// </summary>
        public string CurReginID = "";
        /// <summary>
        /// 上一次登录时间
        /// </summary>
        public DateTime LastTime = DateTime.MinValue;
@@ -138,22 +169,6 @@
        {
            WirteUserinfo(Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)));
        }
        ///// <summary>
        ///// 退出登录重置参数
        ///// </summary>
        //public void LogoutReset()
        //{
        //    userName = "";
        //    ID = "";
        //    LoginTokenString = "";
        //    RefreshToken = "";
        //    userType = "USER_C";
        //    LastTime = DateTime.MinValue;
        //    headImagePagePath = "LoginIcon/2.png";//重置用户头像
        //}
        //public string SetLanguage = "";
        /// <summary>
        /// 软件解锁界面