From 17aba634f86e92e5b8e9cfe59dbae82bd9bb111e Mon Sep 17 00:00:00 2001 From: Toby Tso <7851076+tpnonthealps@users.noreply.github.com> Date: Sun, 14 Feb 2021 02:16:57 +0800 Subject: [PATCH] fix: i-CABLE new URL scheme (#6852) --- lib/routes/icable/category.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/icable/category.js b/lib/routes/icable/category.js index 8722c9057..a4fe28a77 100644 --- a/lib/routes/icable/category.js +++ b/lib/routes/icable/category.js @@ -2,7 +2,7 @@ const got = require('@/utils/got'); function desc(item, option) { if (option === 'brief') { - return `

#${item.group_name} (${item.created_at})
在 app 打開閱讀全文

`; + return `

#${item.group_name} (${item.created_at})
閱讀全文

`; } else if (option === 'withphoto') { return `

${item.desc}

`; } else if (option === 'plain') { @@ -55,7 +55,7 @@ module.exports = async (ctx) => { description: desc(item, option), pubDate: `${item.created_at} +0800`, // 文章发布时间 guid: item.id, // 文章唯一标示, 必须唯一, 可选, 默认为文章链接 - link: `http://cablenews.i-cable.com/ci/videopage/news/${item.id}`, // 指向文章的链接 + link: `http://cablenews.i-cable.com/ci/news/article/37/${item.id}`, // 指向文章的链接 })); ctx.state.data = {