新增座驾购买公屏通知

This commit is contained in:
pllx
2026-04-30 11:27:53 +08:00
parent 06864a9cec
commit 0fe003a773
4 changed files with 73 additions and 0 deletions
@@ -201,6 +201,18 @@ function resolveGameNotificationCardMeta(msg) {
};
}
if (normalizedContent.includes("【座驾】")) {
return {
label: "座驾",
icon: "🚀",
accent: "#0f766e",
background: "linear-gradient(135deg,#ecfeff,#f0fdfa)",
border: "rgba(15,118,110,.16)",
text: "#115e59",
chipBg: "#ccfbf1",
};
}
if (
normalizedContent.includes("【赛马】")
|| normalizedContent.startsWith("🐎 开赛:")
@@ -336,6 +348,14 @@ function extractSystemGameCardSummary(content, meta) {
.trim();
}
if (meta.label === "座驾") {
return normalizedContent
.replace(/^[🚀]+\s*/u, "")
.replace(/^【座驾】/u, "")
.replace(/\s+/gu, " ")
.trim();
}
if (meta.label === "赛马") {
return normalizedContent
.replace(/^[🐎🏇🏆]+\s*/u, "")