修复跑马通知屏蔽识别

This commit is contained in:
pllx
2026-04-30 15:07:09 +08:00
parent 59a417bd10
commit 8c7b1086ff
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ function resolveGameNotificationCardMeta(msg) {
|| normalizedContent.startsWith("🏇 比赛开始:")
|| normalizedContent.startsWith("🏆 冠军:")
|| /^🐎\s*第\s*#?\d+\s*场开赛/u.test(normalizedContent)
|| /^🏇\s*第\s*#?\d+\s*场比赛开始/u.test(normalizedContent)
|| /^🏇\s*(?:赛马)?第\s*#?\d+\s*场比赛开始/u.test(normalizedContent)
|| /^🏆\s*第\s*#?\d+\s*场结束/u.test(normalizedContent)
) {
return {
+6 -2
View File
@@ -545,14 +545,18 @@ export function resolveBlockedSystemSenderKey(msg) {
return "百家乐";
}
// 赛马通知已缩短为“开赛:...”“比赛开始:...”“冠军:...”等格式
// 赛马通知可能来自旧版“跑马”发送者,也可能以系统传音发送紧凑开赛/结束文案
if (
fromUser === "跑马" ||
isSystemBroadcast && (
content.includes("赛马") ||
content.includes("跑马") ||
content.startsWith("🐎 开赛:") ||
content.startsWith("🏇 比赛开始:") ||
content.startsWith("🏆 冠军:")
content.startsWith("🏆 冠军:") ||
/^🐎\s*第\s*#?\d+\s*场开赛/u.test(content) ||
/^🏇\s*(?:赛马)?第\s*#?\d+\s*场比赛开始/u.test(content) ||
/^🏆\s*第\s*#?\d+\s*场结束/u.test(content)
)
) {
return "跑马";