feat: update news content (#3706)

This commit is contained in:
Jin
2020-01-14 11:42:39 +08:00
committed by DIYgod
parent 59fe26d530
commit 60b9e07098
+1 -1
View File
@@ -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;