From 6cfa9ae60e25df43daa7c8f16bfd5780b49a55d1 Mon Sep 17 00:00:00 2001 From: RicardoMing Date: Tue, 8 Oct 2019 11:51:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D3DM=E6=96=B0=E9=97=BB?= =?UTF-8?q?=E7=9A=84=E6=A0=87=E9=A2=98=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=AD=97=E6=AE=B5=20(#3185)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/3dm/news_center.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/routes/3dm/news_center.js b/lib/routes/3dm/news_center.js index 07513dc75..527fe5ceb 100644 --- a/lib/routes/3dm/news_center.js +++ b/lib/routes/3dm/news_center.js @@ -23,6 +23,12 @@ module.exports = async (ctx) => { } const title = $(item) .find('.text') + .find('.bt') + .text(); + + const category = $(item) + .find('.text') + .find('.bq') .find('a') .text(); @@ -40,6 +46,7 @@ module.exports = async (ctx) => { const single = { title: title, + category: category, description: description, pubDate: time.toUTCString(), link: itemUrl,