From e85787e997deaf5850d8275b325284746f88e25a Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Fri, 12 Jan 2024 00:20:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E5=9B=BD=E5=AE=B6=E5=A4=96?= =?UTF-8?q?=E6=B1=87=E7=AE=A1=E7=90=86=E5=B1=80=E4=B8=9A=E5=8A=A1=E5=92=A8?= =?UTF-8?q?=E8=AF=A2=20&=20=E6=8A=95=E8=AF=89=E5=BB=BA=E8=AE=AE=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=20(#14226)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/gov/maintainer.js | 2 +- lib/v2/gov/safe/util.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/v2/gov/maintainer.js b/lib/v2/gov/maintainer.js index c7c01ac4e714eb..e02d783226edf2 100644 --- a/lib/v2/gov/maintainer.js +++ b/lib/v2/gov/maintainer.js @@ -58,7 +58,7 @@ module.exports = { '/pbc/tradeAnnouncement': ['nczitzk'], '/pbc/zcyj': ['Fatpandac'], '/samr/xgzlyhd/:category?/:department?': ['nczitzk'], - '/safe/bussiness/:site?': ['nczitzk'], + '/safe/business/:site?': ['nczitzk'], '/safe/complaint/:site?': ['nczitzk'], '/sasac/:path+': ['TonyRL'], '/stats/:path+': ['bigfei', 'nczitzk'], diff --git a/lib/v2/gov/safe/util.js b/lib/v2/gov/safe/util.js index 8fb315f13c7309..a9a05a692becad 100644 --- a/lib/v2/gov/safe/util.js +++ b/lib/v2/gov/safe/util.js @@ -44,13 +44,13 @@ const processZxfkItems = async (site = 'beijing', category = 'ywzx', limit = '3' return { title: `${message.author}: ${message.content}`, - link: new URL(item.find('.title').prop('href'), rootUrl).href, + link: currentUrl, description: art(path.join(__dirname, 'templates/message.art'), { message, reply, }), author: `${message.author}/${reply.author}`, - guid: item.find('.id').text(), + guid: `${currentUrl}#${message.author}(${message.date})/${reply.author}(${reply.date})`, pubDate: parseDate(message.date), updated: parseDate(reply.date), };