From 5f00a5e92aa48b453004d6bb2a6f517977c6b852 Mon Sep 17 00:00:00 2001 From: Kenny Fong Date: Mon, 11 Aug 2025 19:12:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(route/gamer):=20=E7=86=B1=E9=96=80=E6=8E=A8?= =?UTF-8?q?=E8=96=A6=20=E6=94=B9=E7=82=BA=20=E6=9C=AC=E6=9D=BF=E6=8E=A8?= =?UTF-8?q?=E8=96=A6=20(#19796)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kenny Fong --- lib/routes/gamer/hot.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/routes/gamer/hot.ts b/lib/routes/gamer/hot.ts index f5b5c442a..e4e4ec513 100644 --- a/lib/routes/gamer/hot.ts +++ b/lib/routes/gamer/hot.ts @@ -19,13 +19,13 @@ export const route: Route = { supportPodcast: false, supportScihub: false, }, - name: '熱門推薦', - maintainers: ['nczitzk', 'TonyRL'], + name: '本板推薦', + maintainers: ['nczitzk', 'TonyRL', 'kennyfong19931'], handler, }; async function handler(ctx) { - const rootUrl = `https://forum.gamer.com.tw/A.php?bsn=${ctx.req.param('bsn')}`; + const rootUrl = `https://forum.gamer.com.tw/B.php?bsn=${ctx.req.param('bsn')}`; const response = await got({ url: rootUrl, headers: { @@ -34,12 +34,12 @@ async function handler(ctx) { }); const $ = load(response.data); - const list = $('div.FM-abox2A a.FM-abox2B') + const list = $('div.popular__card-list div.popular__card-img a') .toArray() .map((item) => { item = $(item); return { - link: `https:${item.attr('href')}`, + link: item.attr('href'), }; });