From 9780c2ca247db5f4392a021022ed204910857992 Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Mon, 13 Mar 2023 12:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dacg=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/api/funApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/api/funApi.js b/model/api/funApi.js index 1def095..2e193c8 100644 --- a/model/api/funApi.js +++ b/model/api/funApi.js @@ -188,7 +188,7 @@ export default new class { url = `${domain}/list-31-${_.random(1, 177)}.html` } const home = await request.get(url).then(res => res.text()) - const href = _.sample(_.map(load(home)('div.cover.mod_imgLight > a, li.wrap > div > a'), item => item.attribs.href)) + const href = _.sample(_.map(load(home)('div.cos-list.clearfix > ul > a, li.wrap > div > a'), item => item.attribs.href)) if (!href) throw Error('未找到结果') const details = await request.get(domain + href).then(res => res.text()) const $ = load(details)