fix: wemp 一次抓取过多文章导致超时 (#4641)

This commit is contained in:
Henry Wang
2020-05-02 06:10:27 +01:00
committed by GitHub
parent d59b59fc33
commit 0e4485576b

View File

@@ -17,6 +17,7 @@ module.exports = async (ctx) => {
const items = await Promise.all(
$('.post-item__main')
.get()
.slice(0, 3)
.map(async (e) => {
let pubDate = date(`${year} ${$(e).find('.post-item__date').text().trim()}`, 8);