fix(route): 2048/:type (#14572)

This commit is contained in:
moemoe
2024-02-27 23:10:30 +08:00
committed by GitHub
parent d65a83e5e8
commit af87f6be1c
+2 -3
View File
@@ -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`;