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),