Repository navigation
feat: 实现断箭战报、绑定与持久化请求额度 - #2
Merged
Merged
Conversation
Owner
Author
|
@codex review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
实现《断箭》玩家查询、候选选择、默认账号绑定,以及概览、近期和单局战报。图片与文字共用展示数据;在线查询默认关闭,接入方式见 README。
项目框架已由 #1 合入 main。本 PR 以 main 为目标,只包含其余插件实现:原生设置、请求与缓存、SQLite 持久化、模板、离线测试、预览和 ZIP 交付工具。CI 在框架检查上增加完整离线测试和安装包构建。本 PR 不启用自动合并。
额度统一按上游 HTTP 请求计数:用户默认 20、群默认 100 可调,全插件固定 100;北京时间 0 点重置。失败与重试计入,缓存命中不计入,重载和清缓存保留计数。
已导入审阅后的中文提示与设置文案。审查修复集中在共享契约:参与者身份核对、字面昵称与结构化提及、按单位 ID 聚合、Storage 事务取消回滚、HTTP 发送间隔与额度持久化的协调。退避或日界变化时在提交前回滚并重新准入,提交后直接发送,避免长等待造成跨日错记。
验证:本地 435 项离线测试通过(24.70 秒);GitHub Actions 的 Python 3.11 / 3.12 各通过全部 435 项测试及安装包构建。36 张合成卡片的布局和外部请求检查通过,并复查手机概览;交付 ZIP 的嵌套归档 CRC、文件哈希与安装包内容检查通过。没有调用真实 BATrace 接口或部署 AstrBot;实际接入验证状态见 docs/VALIDATION.md。