fix: banyuetan null error (#2708)
This commit is contained in:
parent
80ba963e6f
commit
76cb734e54
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue