From 5428e35f03a3cf91df2caf6b030515b980d5c2f9 Mon Sep 17 00:00:00 2001 From: Jigsaw Date: Thu, 11 Aug 2022 19:52:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B8=AD=E5=8D=97=E5=A4=A7?= =?UTF-8?q?=E5=AD=A6=E8=AE=A1=E7=AE=97=E6=9C=BA=E5=AD=A6=E9=99=A2=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=20(#10444)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(route): twreporter content * fix(route): 中南大学计算机学院通知 --- lib/v2/csu/cse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/csu/cse.js b/lib/v2/csu/cse.js index b48129530..4691de837 100644 --- a/lib/v2/csu/cse.js +++ b/lib/v2/csu/cse.js @@ -22,7 +22,7 @@ module.exports = async (ctx) => { const out = await Promise.all( list.map((item) => { const $ = cheerio.load(item); - const address = new URL($('a').attr('href'), url); + const address = new URL($('a').attr('href'), url).href; const title = $('a').text(); const pubDate = $('span').text(); return ctx.cache.tryGet(address, async () => {