From 022ee918db1f1474a04b3e5a6cdf8add8ce4e706 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Sat, 1 Feb 2020 09:18:35 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8C=E5=8D=81=E6=AC=A1=E5=B9=82?= =?UTF-8?q?=E6=94=B9=E7=89=88=20(#3803)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/tencent/wechat/ershcimi.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/routes/tencent/wechat/ershcimi.js b/lib/routes/tencent/wechat/ershcimi.js index a447cbbcb0..165d59a4e4 100644 --- a/lib/routes/tencent/wechat/ershcimi.js +++ b/lib/routes/tencent/wechat/ershcimi.js @@ -6,8 +6,6 @@ module.exports = async (ctx) => { const url = `https://www.ershicimi.com/a/${id}`; const response = await got(url); const $ = cheerio.load(response.data); - const name = $('#wrapper > .yheader > .info-wrap .name').text(); - const description = $('#wrapper .right > .Card .Profile-sideColumnItemValue').text(); const items = $('.weui_media_box') .map((_, ele) => { const $item = cheerio.load(ele); @@ -19,9 +17,9 @@ module.exports = async (ctx) => { }) .get(); ctx.state.data = { - title: `微信公众号 - ${name}`, + title: `微信公众号 - ${$('span.name').text()}`, link: url, - description, + description: $('div.Profile-sideColumnItemValue').text(), item: items, }; };