fix(route/ff14-zh): add a default news link to items where the link is empty (#20762)
This commit is contained in:
parent
361ca3d8ca
commit
220a6842d5
|
|
@ -60,9 +60,9 @@ async function handler(ctx) {
|
|||
title: '最终幻想14(国服)新闻中心',
|
||||
link: referer + '#/newstab/newslist',
|
||||
description: '《最终幻想14》是史克威尔艾尼克斯出品的全球经典游戏品牌FINAL FANTASY系列的最新作品,IGN获得9.2高分!全球累计用户突破1600万!',
|
||||
item: data.map(({ Title, Summary, Author, PublishDate, HomeImagePath }) => ({
|
||||
item: data.map(({ Title, Summary, Author, PublishDate, HomeImagePath, Id }) => ({
|
||||
title: Title,
|
||||
link: Author,
|
||||
link: Author || `https://ff.web.sdo.com/web8/index.html#/newstab/newscont/${Id}`,
|
||||
description: art(path.join(__dirname, 'templates/description.art'), {
|
||||
image: HomeImagePath,
|
||||
description: Summary,
|
||||
|
|
|
|||
Loading…
Reference in New Issue