fix: WEMP 路由 (#1656)

This commit is contained in:
Henry Wang
2019-03-04 11:16:19 +00:00
committed by DIYgod
parent f791d27d85
commit 2aff7a8e1c

View File

@@ -41,16 +41,20 @@ module.exports = async (ctx) => {
const article = cheerio.load(response);
return {
const single = {
title: $(e)
.find('.post-item__title')
.text()
.trim(),
link: article('.post__orilink').attr('href'),
link: article('.post__orilink')
.last()
.attr('href'),
description: article('#content').html(),
pubDate,
author,
};
return Promise.resolve(single);
})
);