diff --git a/lib/routes/xiaoheihe/news.js b/lib/routes/xiaoheihe/news.js index 469bf1b0f..bfdfdca86 100644 --- a/lib/routes/xiaoheihe/news.js +++ b/lib/routes/xiaoheihe/news.js @@ -32,7 +32,9 @@ module.exports = async (ctx) => { }); // 解析html内容 const $ = cheerio.load(article.data); - const content = $('.article-content').html(); + const content = $('.article-content') + .html() + .replace(/data-original/g, 'src'); // 存放到缓存区 ctx.cache.set(cacheKey, content); news.description = content;