diff --git a/lib/routes/boc/whpj.js b/lib/routes/boc/whpj.js index 47522a548..16467e59b 100644 --- a/lib/routes/boc/whpj.js +++ b/lib/routes/boc/whpj.js @@ -17,19 +17,20 @@ module.exports = async (ctx) => { .text()} ${$(this) .find('td:nth-child(8)') .text()}`; + const content = `现汇买入价:${$(this) + .find('td:nth-child(2)') + .text()} 现钞买入价:${$(this) + .find('td:nth-child(3)') + .text()} 现汇卖出价:${$(this) + .find('td:nth-child(4)') + .text()} 现钞卖出价:${$(this) + .find('td:nth-child(5)') + .text()} 中行折算价:${$(this) + .find('td:nth-child(6)') + .text()}`; const info = { - title: name, - description: `现汇买入价:${$(this) - .find('td:nth-child(2)') - .text()}
现钞买入价:${$(this) - .find('td:nth-child(3)') - .text()}
现汇卖出价:${$(this) - .find('td:nth-child(4)') - .text()}
现钞卖出价:${$(this) - .find('td:nth-child(5)') - .text()}
中行折算价:${$(this) - .find('td:nth-child(6)') - .text()}
`, + title: name + ' ' + content, + description: content.replace(/\s/g, '
'), pubDate: new Date(date).toUTCString(), guid: name + date, };