From 6e3b368de3a296bfd37f18ddd06ea8a24f61d2d6 Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Thu, 4 Aug 2022 09:51:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B8=AD=E5=9B=BD=E8=BD=BD?= =?UTF-8?q?=E4=BA=BA=E8=88=AA=E5=A4=A9=E9=A3=9E=E8=A1=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=9B=BE=E7=89=87URL=20(#10390)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/gov/cmse/fxrw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2/gov/cmse/fxrw.js b/lib/v2/gov/cmse/fxrw.js index c5c75ad8f8..00a5cac470 100644 --- a/lib/v2/gov/cmse/fxrw.js +++ b/lib/v2/gov/cmse/fxrw.js @@ -23,10 +23,10 @@ module.exports = async (ctx) => { return { title: item.find('.title').text().split(':').pop().trim(), - link: new URL(item.attr('href'), currentUrl), + link: new URL(item.attr('href'), currentUrl).href, pubDate: timezone(parseDate(item.find('.infoR').first().text().trim(), 'YYYY年M月D日H时m分'), +8), description: art(path.join(__dirname, 'templates/description.art'), { - image: item.find('img').attr('src'), + image: new URL(item.find('img').attr('src'), currentUrl).href, description: item.find('.info').html(), }), };