From 82deac591ec9561edb8c4aff9291de044a21dd70 Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Fri, 24 Mar 2023 20:41:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E6=97=A5=E6=9C=AC=E7=BB=8F?= =?UTF-8?q?=E6=B5=8E=E6=96=B0=E9=97=BB=E4=B8=AD=E6=96=87=E7=89=88=E5=AE=98?= =?UTF-8?q?=E6=96=B9RSS=20(#12142)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(route): 日本经济新闻中文版官方RSS * fix: wrong rss url --- lib/v2/nikkei/cn/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/v2/nikkei/cn/index.js b/lib/v2/nikkei/cn/index.js index ebd482d2f..2795c8c38 100644 --- a/lib/v2/nikkei/cn/index.js +++ b/lib/v2/nikkei/cn/index.js @@ -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 = [],