Files
DanDingNoneBot/openspec/changes/archive/fix-horse-racing-issues/report.md

23 lines
850 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 实现报告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"无法同时注册