fix(route): 日本经济新闻中文版官方RSS (#12142)
* fix(route): 日本经济新闻中文版官方RSS * fix: wrong rss url
This commit is contained in:
parent
dd82c1da0e
commit
82deac591e
|
|
@ -18,8 +18,9 @@ module.exports = async (ctx) => {
|
|||
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : 25;
|
||||
|
||||
const rootUrl = `https://${language === 'zh' ? 'zh.' : ''}cn.nikkei.com`;
|
||||
const currentUrl = `${rootUrl}${path}`;
|
||||
const isOfficialRSS = path === `/rss`;
|
||||
const isOfficialRSS = path === '/rss';
|
||||
const currentUrl = `${rootUrl}${path}${isOfficialRSS ? '.html' : ''}`;
|
||||
|
||||
let officialFeed;
|
||||
|
||||
let items = [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue