From e6759ea2a8f1f4cf20ff2c6de4ce31261e0ce4b3 Mon Sep 17 00:00:00 2001 From: MisteryMonster <40703811+MisteryMonster@users.noreply.github.com> Date: Wed, 29 Apr 2020 14:15:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E6=80=A5=E9=A2=84=E8=AD=A6|?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E6=96=B0=E9=97=BB=20=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=9D=A1=E7=9B=AE=E8=87=B320=EF=BC=8C=E6=BA=901000=E4=B8=AA?= =?UTF-8?q?=E3=80=82=20(#4605)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/cneb/guoneinews.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/cneb/guoneinews.js b/lib/routes/cneb/guoneinews.js index 8c11c6a0d..c255ea691 100644 --- a/lib/routes/cneb/guoneinews.js +++ b/lib/routes/cneb/guoneinews.js @@ -6,12 +6,12 @@ module.exports = async (ctx) => { method: 'get', url: 'http://www.cneb.gov.cn/guoneinews/guoneidata/', }) - ).data.rollData; + ).data.rollData.slice(0, 50); const items = list.map((item) => { const single = { title: item.title, - description: item.description.replace(//g, ''), + description: item.description, pubDate: new Date(item.dateTime + ' UTC+08:00').toString(), link: item.url, };