feat: BIZ-75 双色球系统改进
1. P1: 合并双 Flask 服务 — web_executor.py 功能整合到 app.py - /fetch → 抓取控制台页面 - /api/fetch/status → 抓取状态查询 - /api/fetch/execute → 触发抓取(后台线程异步) - web_console.html API 路径已更新 2. P1: fetch_data.py 增加重试机制 + 请求间隔 - REQUEST_DELAY=2s, MAX_RETRIES=3, RETRY_DELAY=5s - 修复缩进 bug(try/except 块缩进错误) 3. P0: 修复 Excel 数据格式兼容性 - fetch_data.py: 跳过网页 header 行,使用标准列名保存 - app.py: 新增 load_history_dataframe() 智能加载函数 - 兼容新旧两种 Excel 格式(一行/两行 header) - 统一列名: 开奖时间|期数|号码|开机号|和值特征|奇偶比|大小比|奇偶形态|跨度|其他 4. 运维: 创建 lotto-app.service systemd 单元 5. 修复 .gitignore(排除运行时数据文件和备份) 6. 创建 requirements.txt
This commit is contained in:
+12
@@ -5,3 +5,15 @@ venv/
|
||||
.venv/
|
||||
LottoSpider/
|
||||
*.log
|
||||
|
||||
# 运行时生成的数据文件
|
||||
.fetch_status.json
|
||||
.generation_records.json
|
||||
lottery/
|
||||
|
||||
# 备份文件
|
||||
*.bak
|
||||
*.bak.*
|
||||
|
||||
# 临时文件
|
||||
*.tmp
|
||||
|
||||
Reference in New Issue
Block a user