feat: factcheck author

This commit is contained in:
DIYgod
2020-02-03 19:36:34 +08:00
parent 1a6c47a489
commit 4be7802b27
+2 -2
View File
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
title: `【${item.explain}】${item.title}`,
description: `<img src="${item.cover}">${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: `<img src="${item.cover}">${$('.check_content_points').html()}`,
description: `<img src="${item.cover}"><br>查证要点:${$('.check_content_points').html()}<br>${$('.check_content_writer').html()}`,
};
});
return Promise.resolve(Object.assign({}, simple, details));