diff --git a/lib/v2/fortunechina/index.js b/lib/v2/fortunechina/index.js index d7e1f6a0f..38577c1b0 100644 --- a/lib/v2/fortunechina/index.js +++ b/lib/v2/fortunechina/index.js @@ -41,9 +41,9 @@ module.exports = async (ctx) => { const content = cheerio.load(detailResponse.data); const spans = content('.mod-info span').text(); - let matches = spans.match(/(\d{4}年\d{2}月\d{2}日)/); + let matches = spans.match(/(\d{4}-\d{2}-\d{2})/); if (matches) { - item.pubDate = parseDate(matches[1].replace(/年|月/g, '-').replace(/日/, '')); + item.pubDate = parseDate(matches[1]); } else { matches = spans.match(/(\d+小时前)/); if (matches) { @@ -53,7 +53,7 @@ module.exports = async (ctx) => { item.author = content('.name').text(); - content('.mod-info, .title').remove(); + content('.mod-info, .title, .eval-zan, .eval-pic, .sae-more').remove(); item.description = content('#articleContent, .eval-desc').html();