fix(route): Update wmpvp news title (#14797)

This commit is contained in:
tssujt
2024-03-15 21:11:03 +08:00
committed by GitHub
parent 022a8233c0
commit 390d5fe02c
+6 -1
View File
@@ -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,
};