fix: WEMP 路由 (#1656)
This commit is contained in:
parent
f791d27d85
commit
2aff7a8e1c
|
|
@ -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);
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue