From fc8f8b7e3c6266795201f68c32d45b76e7ce9780 Mon Sep 17 00:00:00 2001 From: SunShinenny Date: Wed, 6 Nov 2019 17:18:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=91=E6=95=B0=E6=B4=BE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AF=BC=E8=87=B4=E7=9A=84=E6=97=A0=E6=B3=95=E6=8A=93?= =?UTF-8?q?=E5=8F=96=E6=AD=A3=E6=96=87=E7=9A=84bug=20(#3385)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/sspai/author.js | 2 +- lib/routes/sspai/column.js | 2 +- lib/routes/sspai/matrix.js | 2 +- lib/routes/sspai/topic.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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,