fix(route): 日本经济新闻中文版官方RSS (#12142)
* fix(route): 日本经济新闻中文版官方RSS * fix: wrong rss url
This commit is contained in:
@@ -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 = [],
|
||||
|
||||
Reference in New Issue
Block a user