From 271c46f52e74845dac76fa5ece4eb8b94d9168f4 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 08 四月 2022 10:12:31 +0800 Subject: [PATCH] 金茂温控器 --- HDL_ON/DAL/Server/HttpServerRequest.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpServerRequest.cs b/HDL_ON/DAL/Server/HttpServerRequest.cs index 7c60903..4741b1c 100644 --- a/HDL_ON/DAL/Server/HttpServerRequest.cs +++ b/HDL_ON/DAL/Server/HttpServerRequest.cs @@ -153,6 +153,10 @@ sdm.RefreshToken = UserInfo.Current.RefreshToken; #endif } + else if (revertObj.Code == StateCode.PasswrodError) + { + UserInfo.Current.LastTime = DateTime.MinValue; + } return revertObj.Code; } @@ -1025,10 +1029,10 @@ #endif //鏄惁鐢熶骇妯″紡 bool isProduce = true; -#if DEBUG - isProduce = false; -#endif - + if (HttpUtil.GlobalRequestHttpsHost == "https://test-gz.hdlcontrol.com") + { + isProduce = false; + } if (string.IsNullOrEmpty(OnAppConfig.Instance.PushDeviceToken)) { Utlis.WriteLine("PushDeviceToken 涓虹┖"); -- Gitblit v1.8.0