fix: i-CABLE new URL scheme (#6852)
This commit is contained in:
parent
f286a107bb
commit
17aba634f8
|
|
@ -2,7 +2,7 @@ const got = require('@/utils/got');
|
|||
|
||||
function desc(item, option) {
|
||||
if (option === 'brief') {
|
||||
return `<p>#${item.group_name} (${item.created_at})<br><a href="https://ott-news.i-cable.com/zh-hk/l/open-content?cid=${item.id}&ct=1">在 app 打開</a>|<a href="http://cablenews.i-cable.com/ci/videopage/news/${item.id}">閱讀全文</a></p>`;
|
||||
return `<p>#${item.group_name} (${item.created_at})<br><a href="http://cablenews.i-cable.com/ci/news/article/37/${item.id}">閱讀全文</a></p>`;
|
||||
} else if (option === 'withphoto') {
|
||||
return `<img src="${item.pic_url}"><p>${item.desc}</p>`;
|
||||
} 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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue