From c00da77d00a479fa5d022346a6d9075f90a5c087 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期六, 14 九月 2024 10:05:34 +0800
Subject: [PATCH] 退出登录时间调整,新风,音乐

---
 HDL_ON/DAL/Server/HttpUtil.cs |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/DAL/Server/HttpUtil.cs b/HDL_ON/DAL/Server/HttpUtil.cs
index cd66d30..5030f20 100644
--- a/HDL_ON/DAL/Server/HttpUtil.cs
+++ b/HDL_ON/DAL/Server/HttpUtil.cs
@@ -19,14 +19,12 @@
         /// 鍏叡鍩熷悕灏辫繎瑙f瀽
         /// </summary>
         public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com";
-        const string APP_KEY = "HDL-HOME-APP";
-        const string SECRET_KEY = "CPL345bn28gHnvi9G4tYbq3cTYkiHC";
-
+        public const string APP_KEY = "HDL-HOME-APP";
+        public const string SECRET_KEY = "CPL345bn28gHnvi9G4tYbq3cTYkiHC";
 
         //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";
-        //const string APP_KEY = "HDL-HOME-APP-TEST";
-        //const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss";
-
+        //public const string APP_KEY = "HDL-HOME-APP-TEST";
+        //public const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss";
 
         //public const string GlobalRequestHttpsHost = "http://59.41.255.150:7777";//mmmm
         //const string APP_KEY = "CPEVRLRT";
@@ -253,7 +251,7 @@
                 }
                 else
                 {
-                    HDL_ON.Utlis.WriteLine($"鎺ュ彛寮傚父:{requestFullUrl} \r\n"+response.Content);
+                    MainPage.Log("Error", $"鎺ュ彛寮傚父:{requestFullUrl} \r\n" + response.Content);
                     if(response.Content!= null)
                     {
                         try
@@ -272,7 +270,7 @@
             }
             catch (Exception ex)
             {
-                HDL_ON.Utlis.WriteLine(ex.Message);
+                MainPage.Log("Error", $"鎺ュ彛寮傚父x锛歿ex.StackTrace}");
                 return new ResponsePackNew() { Code = StateCode.NETWORK_ERROR ,message = Language.StringByID(StringId.FailedRequestServer) };
             }
 
@@ -341,7 +339,7 @@
 #endif
                     return true;
                 }
-                else if (revertObj.Code == StateCode.PasswrodError)
+                else //if (revertObj.Code == StateCode.PasswrodError)
                 {
                     UserInfo.Current.LastTime = DateTime.MinValue;
                 }

--
Gitblit v1.8.0