fix(route/ff14-zh): add a default news link to items where the link is empty (#20762)

This commit is contained in:
karasu 2025-12-26 18:01:11 +08:00 committed by GitHub
parent 361ca3d8ca
commit 220a6842d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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,