chore: 归档fix-horse-racing-issues提案

This commit is contained in:
2026-05-01 23:15:08 +08:00
parent a2b7e1fc11
commit 9566920866
8 changed files with 326 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# 实现报告fix-horse-racing-issues
## 变更摘要
- P0 SQLite异步化 (room_store.py, commands.py)
- P0 积分扣款重试 (points_service.py)
- P0 消息发送异常日志 (commands.py)
- P1 积分历史字段补充 (commands.py)
- P1 赔率快照 (commands.py)
- P1 测试数据隔离 (test_commands.py)
- P2 马名去重 (commands.py)
## 修改文件
1. room_store.py: sqlite3→aiosqlite, 所有DB操作改为async
2. points_service.py: 统一异常处理+轻量重试(0.5~1s一次)
3. commands.py: 所有room_store调用加await, _send_to_scope加warning日志, 结算写入赔率快照
4. test_commands.py: 移除直接import生产room_store/points_service, 改为commands_mod间接引用
## 待验证项
- [ ] 插件加载正常
- [ ] 比赛流程跑通
- [ ] 测试不影响生产数据
- [ ] "Test"和"test"无法同时注册