From 4be7802b27e26da0d45b5aae66ec9c768c3616cf Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 3 Feb 2020 19:36:34 +0800 Subject: [PATCH] feat: factcheck author --- lib/routes/tencent/factcheck/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/tencent/factcheck/index.js b/lib/routes/tencent/factcheck/index.js index 2fc7ff190..bd05b00cb 100644 --- a/lib/routes/tencent/factcheck/index.js +++ b/lib/routes/tencent/factcheck/index.js @@ -19,7 +19,7 @@ module.exports = async (ctx) => { title: `【${item.explain}】${item.title}`, description: `${item.abstract}`, pubDate: new Date(item.date).toUTCString(), - author: item.author, + author: `${item.author}${item.author !== item.authordesc ? '-' + item.authordesc : ''}`, link: link, }; @@ -27,7 +27,7 @@ module.exports = async (ctx) => { const response = await got.get(link); const $ = cheerio.load(response.data); return { - description: `${$('.check_content_points').html()}`, + description: `
查证要点:${$('.check_content_points').html()}
${$('.check_content_writer').html()}`, }; }); return Promise.resolve(Object.assign({}, simple, details));