From f3db6b8aff3a45e7f25fd1deee5c5607058551d9 Mon Sep 17 00:00:00 2001 From: Ezekiel <45861815+Leezeke@users.noreply.github.com> Date: Sat, 11 Jun 2022 22:51:27 +0800 Subject: [PATCH] fix(route): novel/biqugeinfo (#9934) --- lib/routes/novel/biqugeinfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/novel/biqugeinfo.js b/lib/routes/novel/biqugeinfo.js index 16180923d..cbb831d5c 100644 --- a/lib/routes/novel/biqugeinfo.js +++ b/lib/routes/novel/biqugeinfo.js @@ -35,7 +35,7 @@ module.exports = async (ctx) => { const items = []; for await (const item of asyncPool(3, chapter_item, (item) => - ctx.cache.tryGet(item, async () => { + ctx.cache.tryGet(item.link.href, async () => { const response = await got({ method: 'get', url: item.link, @@ -61,7 +61,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: `笔趣阁 ${title}`, - link: pageUrl, + link: pageUrl.href, image: cover_url, description, item: items,