From 04ffe31b6a2b2fbcfecc83abb44a8aa233f2e53f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 02 二月 2026 18:45:57 +0800
Subject: [PATCH] 54 【淘金】切后台淘金完成 时间显示负数

---
 Main/System/InternalAffairs/GoldRushWorkCell.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Main/System/InternalAffairs/GoldRushWorkCell.cs b/Main/System/InternalAffairs/GoldRushWorkCell.cs
index 7a5667f..ca2408d 100644
--- a/Main/System/InternalAffairs/GoldRushWorkCell.cs
+++ b/Main/System/InternalAffairs/GoldRushWorkCell.cs
@@ -1,4 +1,5 @@
-锘縰sing System.Collections.Generic;
+锘縰sing System;
+using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
 
@@ -62,7 +63,7 @@
         {
             if (endTime != 0)
             {
-                timeText.text = TimeUtility.SecondsToHMS(endTime - TimeUtility.AllSeconds);
+                timeText.text = TimeUtility.SecondsToHMS(Math.Max(0, endTime - TimeUtility.AllSeconds));
                 //鎸夊師鎬绘椂闀垮綋杩涘害鏉�
                 slider.value = (config.NeedSeconds - (endTime - TimeUtility.AllSeconds)) / (float)config.NeedSeconds;
             }

--
Gitblit v1.8.0