refactor: Remove deprecated files and enhance configuration settings

- Deleted outdated markdown files and scripts related to previous implementations.
- Updated `config.json` to adjust thresholds and settings for 福袋 detection and reservation handling.
- Improved logging and error handling across various modules for better monitoring and user experience.
- Introduced a new screenshot management module to facilitate real-time operation and success tracking.
- Enhanced GUI elements to support new configuration options and improve usability.
This commit is contained in:
Your Name committed 2025-12-20 20:11:28 +08:00
1 parent 8b47b506d6
commit 47e6b016c5
31 files changed
+2257 -7371

No files matched your search

+21 -1
View File
@@ -40,7 +40,10 @@ def normalize_countdown_text(text: str) -> str:
mm = int(m.group(1))
ss = int(m.group(2))
# 若分秒识别反了(例如 53:08 实际应为 08:53),优先选择 <= 15 分钟的解释
if (mm * 60 + ss) > 900 and (ss * 60 + mm) <= 900:
# 或者秒数不合法(>=60),也尝试交换
total1 = mm * 60 + ss
total2 = ss * 60 + mm
if (total1 > 900 and total2 <= 900) or (ss >= 60 and mm < 60):
mm, ss = ss, mm
return f"{mm:02d}:{ss:02d}后开奖"
# 识别错序:54后开奖04
@@ -51,6 +54,23 @@ def normalize_countdown_text(text: str) -> str:
if (mm * 60 + ss) > 900 and (ss * 60 + mm) <= 900:
mm, ss = ss, mm
return f"{mm:02d}:{ss:02d}后开奖"
# 纯 mm:ss 格式(不带"后开奖"):11:17 / 05:11
m = re.search(r"^(\d{1,2})[::](\d{1,2})$", t)
if m:
mm = int(m.group(1))
ss = int(m.group(2))
# 检查是否需要交换分秒:
# 1. 秒数不合法(>=60)且交换后合法
# 2. 总时间>15分钟且交换后<=15分钟
total1 = mm * 60 + ss
total2 = ss * 60 + mm
if (ss >= 60 and mm < 60) or (total1 > 900 and total2 <= 900):
mm, ss = ss, mm
# 如果秒数仍然>=60,进行进位处理
if ss >= 60:
mm += ss // 60
ss = ss % 60
return f"{mm:02d}:{ss:02d}"
# 纯数字 1137 / 5404
digits = ''.join(ch for ch in t if ch.isdigit())
if len(digits) == 4: