diff --git a/docs/reading.md b/docs/reading.md index 54201c979a..b3d423d7d6 100644 --- a/docs/reading.md +++ b/docs/reading.md @@ -139,3 +139,13 @@ pageClass: routes ### 主页 + +## 书趣阁 + +### 小说更新 + + + +举例网址:http://www.shuquge.com/txt/8659/index.html + + diff --git a/lib/routes/novel/shuquge.js b/lib/routes/novel/shuquge.js index b4641b9fd7..bdf2cffd48 100644 --- a/lib/routes/novel/shuquge.js +++ b/lib/routes/novel/shuquge.js @@ -27,7 +27,7 @@ module.exports = async (ctx) => { .find('a') .map((_, e) => ({ title: e.children[0].data, - link: e.attribs.href, + link: `${baseUrl}${id}/${e.attribs.href}`, })) .get(); @@ -40,7 +40,7 @@ module.exports = async (ctx) => { const response = await got({ method: 'get', - url: `${baseUrl}${id}/${item.link}`, + url: item.link, responseType: 'buffer', }); @@ -59,7 +59,7 @@ module.exports = async (ctx) => { }) ); ctx.state.data = { - title: `笔趣阁 ${title}`, + title: `书趣阁 ${title}`, link: `${baseUrl}${id}/index.html`, image: cover_url, description: description,