From be045e0feac023c82f6a6d22678a313e84157097 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 28 十一月 2025 15:08:02 +0800
Subject: [PATCH] 0312 去除登录过程不允许发包的逻辑,避免影响客户端发包

---
 Main/Utility/TimeUtility.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Main/Utility/TimeUtility.cs b/Main/Utility/TimeUtility.cs
index 6aad2aa..f30b538 100644
--- a/Main/Utility/TimeUtility.cs
+++ b/Main/Utility/TimeUtility.cs
@@ -496,13 +496,13 @@
 
     }
 
-    // 鍒�10鐐硅繕瑕佸灏戠锛屽鏋滃凡缁忚繃浜�10鐐癸紝杩斿洖0
-    public static int GetToTenClockSeconds()
+    // 浠婃棩鍒皒鐐硅繕瑕佸灏戠锛屽鏋滃凡缁忚繃浜唜鐐癸紝杩斿洖0
+    public static int GetToTheHourSeconds(int hour=10)
     {
         var now = ServerNow;
-        if (now.Hour < 10)
+        if (now.Hour < hour)
         {
-            return (int)(ServerNow - new DateTime(now.Year, now.Month, now.Day, 10, 0, 0)).TotalSeconds;
+            return (int)(new DateTime(now.Year, now.Month, now.Day, hour, 0, 0) - ServerNow).TotalSeconds;
         }
         return 0;
     }

--
Gitblit v1.8.0