diff --git a/lib/routes/sspai/author.js b/lib/routes/sspai/author.js index 920ae4678..51a0c279a 100644 --- a/lib/routes/sspai/author.js +++ b/lib/routes/sspai/author.js @@ -24,7 +24,7 @@ module.exports = async (ctx) => { } else { const response = await got({ method: 'get', url: link }); const $ = cheerio.load(response.data); - description = $('div.content.wangEditor-txt.clock').html(); + description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html(); ctx.cache.set(key, description); } diff --git a/lib/routes/sspai/column.js b/lib/routes/sspai/column.js index e830b959f..82766c600 100644 --- a/lib/routes/sspai/column.js +++ b/lib/routes/sspai/column.js @@ -43,7 +43,7 @@ module.exports = async (ctx) => { const response = await got.get(itemUrl); const $ = cheerio.load(response.data); - const description = $('div.content.wangEditor-txt.clock').html(); + const description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html(); const single = { title: title, diff --git a/lib/routes/sspai/matrix.js b/lib/routes/sspai/matrix.js index c2f1c0ca2..1102fbf5c 100644 --- a/lib/routes/sspai/matrix.js +++ b/lib/routes/sspai/matrix.js @@ -21,7 +21,7 @@ module.exports = async (ctx) => { } else { const response = await got({ method: 'get', url: link }); const $ = cheerio.load(response.data); - description = $('div.content.wangEditor-txt.clock').html(); + description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html(); ctx.cache.set(key, description); } diff --git a/lib/routes/sspai/topic.js b/lib/routes/sspai/topic.js index 5b57abd0d..e9ccd86f1 100644 --- a/lib/routes/sspai/topic.js +++ b/lib/routes/sspai/topic.js @@ -30,7 +30,7 @@ module.exports = async (ctx) => { } const response = await got.get(itemUrl); const $ = cheerio.load(response.data); - const description = $('div.content.wangEditor-txt.clock').html(); + const description = $('#app > div.postPage.article-wrapper > div.article-detail > article > div.article-body').html(); const single = { title: title,