From 4d764ef13e70d404a54bcdf46180cb94850318ee Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:41:32 +0800 Subject: [PATCH] fix(route/thepaper): Include links from carousel. (#13480) --- lib/v2/thepaper/featured.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/thepaper/featured.js b/lib/v2/thepaper/featured.js index 455f924e18f504..913e0c4c9ef6ae 100644 --- a/lib/v2/thepaper/featured.js +++ b/lib/v2/thepaper/featured.js @@ -5,7 +5,7 @@ const got = require('@/utils/got'); module.exports = async (ctx) => { const response = await got('https://m.thepaper.cn'); const data = JSON.parse(cheerio.load(response.data)('#__NEXT_DATA__').html()); - const list = data.props.pageProps.data.list; + const list = data.props.pageProps.data.list.concat(data.props.pageProps.topData.recommendImg); const items = await Promise.all(list.map((item) => utils.ProcessItem(item, ctx))); ctx.state.data = {