From b9771bd52cb75768399bb0f41aeb1095ffdeeab7 Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Tue, 6 Feb 2024 00:30:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E8=89=BE=E7=91=9E=E5=91=A8?= =?UTF-8?q?=E5=BA=A6=E5=B8=82=E5=9C=BA=E8=A7=82=E5=AF=9F=20(#14400)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/iresearch/weekly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2/iresearch/weekly.js b/lib/v2/iresearch/weekly.js index 701c986cc..a4e3e7389 100644 --- a/lib/v2/iresearch/weekly.js +++ b/lib/v2/iresearch/weekly.js @@ -7,7 +7,7 @@ module.exports = async (ctx) => { const category = ctx.params.category ?? ''; const rootUrl = 'https://www.iresearch.com.cn'; - const currentUrl = `${rootUrl}/report.shtml?type=4`; + const currentUrl = `${rootUrl}/report?type=3`; const apiUrl = `${rootUrl}/api/json/report/ireport.json`; const response = await got({ @@ -16,8 +16,8 @@ module.exports = async (ctx) => { }); const items = JSON.parse(response.data.slice(1)) - .slice(0, ctx.query.limit ? Number.parseInt(ctx.query.limit) : 200) .filter((item) => (category ? item.classname === category : true)) + .slice(0, ctx.query.limit ? Number.parseInt(ctx.query.limit) : 200) .map((item) => ({ title: item.reportname, pubDate: parseDate(item.addtime),