feat: factcheck author
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user