From af87f6be1c88cfccb74ae4e215de205d69c03199 Mon Sep 17 00:00:00 2001 From: moemoe <90035294+hudatumoe@users.noreply.github.com> Date: Tue, 27 Feb 2024 23:10:30 +0800 Subject: [PATCH] fix(route): 2048/:type (#14572) --- lib/v2/2048/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/v2/2048/index.js b/lib/v2/2048/index.js index 9761e6bdc..65a33b23c 100644 --- a/lib/v2/2048/index.js +++ b/lib/v2/2048/index.js @@ -17,9 +17,8 @@ module.exports = async (ctx) => { }, }); const $ = cheerio.load(response); - return $('ul li a') - .toArray() - .find((item) => $(item).text() === '最新線路1').attribs.href; + const targetLink = $('table.group-table tr').eq(1).find('td a').eq(0).attr('href'); + return targetLink; }); const currentUrl = `${entranceDomain}/2048/thread.php?fid-${id}.html`;