Skip to content

Commit 220a684

Browse files
authored
fix(route/ff14-zh): add a default news link to items where the link is empty (#20762)
1 parent 361ca3d commit 220a684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/routes/ff14/ff14-zh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ async function handler(ctx) {
6060
title: '最终幻想14(国服)新闻中心',
6161
link: referer + '#/newstab/newslist',
6262
description: '《最终幻想14》是史克威尔艾尼克斯出品的全球经典游戏品牌FINAL FANTASY系列的最新作品,IGN获得9.2高分!全球累计用户突破1600万!',
63-
item: data.map(({ Title, Summary, Author, PublishDate, HomeImagePath }) => ({
63+
item: data.map(({ Title, Summary, Author, PublishDate, HomeImagePath, Id }) => ({
6464
title: Title,
65-
link: Author,
65+
link: Author || `https://ff.web.sdo.com/web8/index.html#/newstab/newscont/${Id}`,
6666
description: art(path.join(__dirname, 'templates/description.art'), {
6767
image: HomeImagePath,
6868
description: Summary,

0 commit comments

Comments
 (0)