新增座驾购买公屏通知
This commit is contained in:
@@ -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, "")
|
||||
|
||||
Reference in New Issue
Block a user