From 691dbe24f5724f153e07947c7b75bdfea5f0b6d5 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 24 九月 2024 16:15:15 +0800
Subject: [PATCH] 离线控制模式

---
 HDL_ON/Common/UserInfo.cs |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/Common/UserInfo.cs b/HDL_ON/Common/UserInfo.cs
index 1e53ae7..4f59c01 100644
--- a/HDL_ON/Common/UserInfo.cs
+++ b/HDL_ON/Common/UserInfo.cs
@@ -164,19 +164,27 @@
         /// </summary>
         public List<RegionInfoRes> regionList = new List<RegionInfoRes>();
         /// <summary>
+        /// token鏄惁鏈夋晥
+        /// </summary>
+        public bool ValidToken = false;
+        /// <summary>
+        /// 鏄惁鎻愮ず杩嘥oken杩囨湡
+        /// </summary>
+        public bool IsTipedInvalidToken = false;
+        /// <summary>
         /// 涓婁竴娆$櫥褰曟椂闂�
         /// </summary>
-        public DateTime LastTime = DateTime.MinValue;
+        //public DateTime LastTime = DateTime.MinValue;
         /// <summary>
         /// 鏄惁鏄櫥褰曠姸鎬�
         /// </summary>
-        public bool IsLogin
-        {
-            get
-            {
-                return (DateTime.Now - LastTime).TotalDays < 7;
-            }
-        }
+        //public bool IsLogin = false;
+        //{
+        //    get
+        //    {
+        //        return (DateTime.Now - LastTime).TotalDays < 7;
+        //    }
+        //}
 
         [Newtonsoft.Json.JsonIgnore]
         public DateTime LastTimeOpenDoor = DateTime.MinValue;

--
Gitblit v1.8.0