From a31510e4dba4afcb2a736ffc587c0bd411b8e638 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Tue, 24 Nov 2020 19:52:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=97=E5=88=B0=E9=A6=96=E9=A1=B5=20(?= =?UTF-8?q?#6187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/dedao/list.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/routes/dedao/list.js b/lib/routes/dedao/list.js index 1a0aea136..c28f9a235 100644 --- a/lib/routes/dedao/list.js +++ b/lib/routes/dedao/list.js @@ -9,13 +9,19 @@ module.exports = async (ctx) => { url: rootUrl, }); - const currentUrl = `${rootUrl}${response.data.match(new RegExp('' + caty + '<\\/a>'))[1]}`; + const listUrl = `${rootUrl}${response.data.match(new RegExp('年度日更<\\/a>'))[1]}`; const listResponse = await got({ + method: 'get', + url: listUrl, + }); + + const currentUrl = `${rootUrl}${listResponse.data.match(new RegExp('' + caty + '<\\/span>