fix(route): 日本经济新闻中文版官方RSS (#12142)

* fix(route): 日本经济新闻中文版官方RSS

* fix: wrong rss url
This commit is contained in:
Ethan Shen 2023-03-24 20:41:58 +08:00 committed by GitHub
parent dd82c1da0e
commit 82deac591e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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 = [],