新增/扩展:飞书推送、下播提醒延迟、通知历史记录、窗口状态记忆、开机自启动与静默启动等核心功能 #350
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.
📜 标题(Title)
请提供这个Pull Request中提议的更改的简洁描述:
🔍 描述(Description)
请描述这个PR做了什么/为什么这些更改是必要的:
NotificationService中实现飞书自定义机器人推送逻辑,支持text与post两种消息格式。timestamp + "\n" + secret作为 HMAC-SHA256 的 key、空串作为消息体,结果做 Base64 编码并写入sign字段;Date头获取时间戳并缓存,超时或异常时回退到本机时间,降低19021 sign match fail or timestamp is not within one hour错误概率。MessagePusher中接入飞书通道,统一记录推送成功/失败日志。MessagePusher中新增通知历史写入逻辑:default_settings.json中加入上述功能对应的配置项及默认值;zh_CN.json中增加飞书、下播延迟、通知历史、窗口状态、自启动/静默启动等中文说明;en.json中补充与中文对齐的英文文案,保证中英双语场景下 UI 文本完整。📝 类型(Type of Change)
这个PR引入了哪种类型的更改?(请勾选所有适用的选项)
🏗️ 测试(Testing)
请描述您已经进行的测试:
python -m compileall app main.py,确保所有修改文件(包括通知服务、消息推送、配置与视图)均能成功编译,无语法错误。19021错误。如果适用,请提供测试更改的说明:
📋 检查清单(Checklist)
在您创建这个PR之前,请确保以下所有框都被勾选,方法是在每个框中放置一个
x:注意: 这个PR在所有复选框被勾选之前不会被合并。
感谢您的贡献!