fix: banyuetan null error (#2708)

This commit is contained in:
Cloud 2019-07-28 19:11:22 +08:00 committed by DIYgod
parent 80ba963e6f
commit 76cb734e54
1 changed files with 1 additions and 3 deletions

View File

@ -41,9 +41,7 @@ module.exports = async (ctx) => {
const response = await got.get(itemUrl);
const $ = cheerio.load(response.data);
const description = $('div.detail_content')
.html()
.trim();
const description = $('div.detail_content').html() || '文章已被删除';
const single = {
title: title,