From 390d5fe02cc7370b250cdc13d7a59aaa8661b495 Mon Sep 17 00:00:00 2001 From: tssujt Date: Fri, 15 Mar 2024 21:11:03 +0800 Subject: [PATCH] fix(route): Update wmpvp news title (#14797) --- lib/routes/wmpvp/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/routes/wmpvp/index.ts b/lib/routes/wmpvp/index.ts index cf4285e0b..a64a204b2 100644 --- a/lib/routes/wmpvp/index.ts +++ b/lib/routes/wmpvp/index.ts @@ -23,6 +23,11 @@ export const route: Route = { | 1 | 2 |`, }; +const TYPE_MAP = { + '1': 'DOTA2', + '2': 'CS2', +}; + async function handler(ctx) { const type = ctx.req.param('type'); @@ -49,7 +54,7 @@ async function handler(ctx) { }); return { - title: `完美世界电竞`, + title: `完美世界电竞 - ${TYPE_MAP[type]} 资讯`, link: `https://news.wmpvp.com/`, item: items, };