feat: 定时日报并入自动化,统一规则管理与发送链路

发送目标与退群通知统一为 来源群 / 自己 / 文件传输助手 / 指定好友
日报页补「定时日报已并入自动化」指引条
This commit is contained in:
电摇小子 committed 2026-09-28 17:11:50 +07:00
1 parent c835d5c570
commit 4d5c6459fe
49 files changed
+6436 -4863

No files matched your search

+2 -2
View File
@@ -55,10 +55,10 @@ export function matchAutomationRule(
): AutomationMatchResult {
// **规则类型闸门放在最前面。**
//
// 「退群通知」的空关键词 + 不要求 @我,会让它命中**每一条群消息** ——
// 「退群通知」与「定时日报」的空关键词 + 不要求 @我,会让它们命中**每一条群消息** ——
// 那是最坏的一类 bug:用户什么都没配,规则却开始乱跑。
// 类型分派必须在这里一处解决,预览与真实执行才会一致。
if (rule.ruleType === 'leave_notification') {
if (rule.ruleType !== 'daily_report') {
return { matched: false, reason: 'rule_type' }
}