From 3b2a6bb9047cfce9f501593b3669a9c1af6c5df4 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 05 十一月 2025 17:40:23 +0800
Subject: [PATCH] 130 战斗修改回合样式

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

diff --git a/Main/Utility/TimeUtility.cs b/Main/Utility/TimeUtility.cs
index 9504f09..6aad2aa 100644
--- a/Main/Utility/TimeUtility.cs
+++ b/Main/Utility/TimeUtility.cs
@@ -194,7 +194,7 @@
     }
 
     public static event Action OnServerOpenDayRefresh;
-    public static void OnRefreshServerOpenDay(HA005_tagOpenServerDay package)
+    public static void OnRefreshServerOpenDay(HA103_tagMCOpenServerDay package)
     {
         {
             OpenDay = package.Day;
@@ -251,6 +251,7 @@
         int seconds = _seconds % 60;
         return StringUtility.Contact(hours.ToString("D2"), ":", mins.ToString("D2"), ":", seconds.ToString("D2"));
     }
+
 
     //璇︾粏鏄剧ず
     //xx灏忔椂xx鍒哫X绉�
@@ -495,6 +496,17 @@
 
     }
 
+    // 鍒�10鐐硅繕瑕佸灏戠锛屽鏋滃凡缁忚繃浜�10鐐癸紝杩斿洖0
+    public static int GetToTenClockSeconds()
+    {
+        var now = ServerNow;
+        if (now.Hour < 10)
+        {
+            return (int)(ServerNow - new DateTime(now.Year, now.Month, now.Day, 10, 0, 0)).TotalSeconds;
+        }
+        return 0;
+    }
+
     //寮�鏈嶅ぉ缁撴潫鍊掕鏃讹紱鍗曚綅绉�
     public static int GetRemindTimeByOpenDay(int days)
     {

--
Gitblit v1.8.0