From 60b9e07098fb7b3967db277a1cb33207d245b49c Mon Sep 17 00:00:00 2001 From: Jin Date: Tue, 14 Jan 2020 11:42:39 +0800 Subject: [PATCH] feat: update news content (#3706) --- lib/routes/eastday/sh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/eastday/sh.js b/lib/routes/eastday/sh.js index 7bd01f81fb..ec8f15af3d 100644 --- a/lib/routes/eastday/sh.js +++ b/lib/routes/eastday/sh.js @@ -42,7 +42,7 @@ module.exports = async (ctx) => { }); // 解析html内容 const $ = cheerio.load(article.body); - const content = $('.article_wrapper .mainLayer .content').html(); + const content = $('.article_wrapper .mainLayer .content').html() || $('.contentBox .article .detail').html(); // 存放到缓存区 ctx.cache.set(cacheKey, content); entity.description = content;