Skip to content

Commit

Permalink
fix(route/thepaper): Include links from carousel. (DIYgod#13480)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Oct 9, 2023
1 parent 46cf472 commit 4d764ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/thepaper/featured.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 4d764ef

Please sign in to comment.