From cfe2a2d5bc6fe9a85488542597d4f73dddbfeee8 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 26 十月 2025 14:54:36 +0800
Subject: [PATCH] 285 【公会】公会行商(砍价)

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

diff --git a/Main/Utility/TimeUtility.cs b/Main/Utility/TimeUtility.cs
index 9504f09..5889fb3 100644
--- a/Main/Utility/TimeUtility.cs
+++ b/Main/Utility/TimeUtility.cs
@@ -252,6 +252,7 @@
         return StringUtility.Contact(hours.ToString("D2"), ":", mins.ToString("D2"), ":", seconds.ToString("D2"));
     }
 
+
     //璇︾粏鏄剧ず
     //xx灏忔椂xx鍒哫X绉�
     //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