diff --git a/lib/v2/news/whxw.js b/lib/v2/news/whxw.js index 9d667af21..771b0f2cd 100644 --- a/lib/v2/news/whxw.js +++ b/lib/v2/news/whxw.js @@ -15,6 +15,7 @@ module.exports = async (ctx) => { let items = $('h3 a') .toArray() + .slice(0, ctx.query.limit ? parseInt(ctx.query.limit) : 100) .map((item) => { item = $(item); return {