From 1ecba3f7432912d4eb7637355f4dfae676059e00 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 15 十二月 2020 17:23:58 +0800
Subject: [PATCH] 1

---
 HDL_ON/Common/HDLCommon.cs |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs
index 9d9b2c8..1a52ef4 100644
--- a/HDL_ON/Common/HDLCommon.cs
+++ b/HDL_ON/Common/HDLCommon.cs
@@ -282,6 +282,10 @@
             //鏈櫥褰曚笉鐢ㄥ鐞�
             if (!UserInfo.Current.IsLogin) return;
 
+#if DEBUG
+            return;
+#endif
+
             Logout();
         }
 
@@ -302,10 +306,9 @@
                     //2.娉ㄩ攢鎺ㄩ��
                     new HttpServerRequest().SignOutPush();
                     //3.璺宠浆鐧诲綍椤甸潰
-                    //UserInfo.Current.LastTime = DateTime.MinValue;
-                    //UserInfo.Current.headImagePagePath = "LoginIcon/2.png";//閲嶇疆鐢ㄦ埛澶村儚
-                    UserInfo.Current.ClearUserInfo();
-                    DB_ResidenceData.residenceData.EixtAccount();
+                    UserInfo.Current.LastTime = DateTime.MinValue;
+                    UserInfo.Current.SaveUserInfo();
+                    DB_ResidenceData.Instance.EixtAccount();
                 }
                 catch (Exception ex)
                 {

--
Gitblit v1.8.0