修复跑马通知屏蔽识别
This commit is contained in:
@@ -219,7 +219,7 @@ function resolveGameNotificationCardMeta(msg) {
|
|||||||
|| normalizedContent.startsWith("🏇 比赛开始:")
|
|| normalizedContent.startsWith("🏇 比赛开始:")
|
||||||
|| 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)
|
||||||
|| /^🏆\s*第\s*#?\d+\s*场结束/u.test(normalizedContent)
|
|| /^🏆\s*第\s*#?\d+\s*场结束/u.test(normalizedContent)
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -545,14 +545,18 @@ export function resolveBlockedSystemSenderKey(msg) {
|
|||||||
return "百家乐";
|
return "百家乐";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 赛马通知已缩短为“开赛:...”“比赛开始:...”“冠军:...”等格式。
|
// 赛马通知可能来自旧版“跑马”发送者,也可能以系统传音发送紧凑开赛/结束文案。
|
||||||
if (
|
if (
|
||||||
|
fromUser === "跑马" ||
|
||||||
isSystemBroadcast && (
|
isSystemBroadcast && (
|
||||||
content.includes("赛马") ||
|
content.includes("赛马") ||
|
||||||
content.includes("跑马") ||
|
content.includes("跑马") ||
|
||||||
content.startsWith("🐎 开赛:") ||
|
content.startsWith("🐎 开赛:") ||
|
||||||
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 "跑马";
|
return "跑马";
|
||||||
|
|||||||
Reference in New Issue
Block a user