mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-21 12:49:53 +08:00
fix(route/thepaper): Include links from carousel. (#13480)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user