From 1fb20582e9ca954a59b7ff09f89d52e982fa8e1e Mon Sep 17 00:00:00 2001 From: Lince Date: Fri, 21 Sep 2018 18:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=9C=E5=8D=97=E5=A4=A7?= =?UTF-8?q?=E5=AD=A6=E7=A0=94=E7=A9=B6=E7=94=9F=E6=8B=9B=E7=94=9F=E7=BD=91?= =?UTF-8?q?=E7=9A=84pubDate=20(#761)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/universities/seu/yzb/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routes/universities/seu/yzb/index.js b/routes/universities/seu/yzb/index.js index f7d8150083..e784858989 100644 --- a/routes/universities/seu/yzb/index.js +++ b/routes/universities/seu/yzb/index.js @@ -18,14 +18,13 @@ module.exports = async (ctx) => { const id = map.get(type).id; - const items = $(`#${id} > table > tbody > tr`) + const items = $(`#${id} tr tr`) .map((_, elem) => { const a = $('td:first-child > a', elem); - return { link: url.resolve(host, a.attr('href')), title: a.attr('title'), - pubDate: new Date($('td:nth-child(2)').text()).toUTCString(), + pubDate: new Date($('td:nth-child(2)', elem).text()).toUTCString(), }; }) .get();