From 70da5d32efa0175f7f87ddb0d3e2e614d3b0305a Mon Sep 17 00:00:00 2001 From: Ving Date: Sun, 27 Jun 2021 08:01:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B9=A6=E8=B6=A3=E9=98=81?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E5=88=87=E6=8D=A2=E5=90=8E=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=20(#7734)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/novel/shuquge.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/routes/novel/shuquge.js b/lib/routes/novel/shuquge.js index 4d89ae654..d7d5bc67d 100644 --- a/lib/routes/novel/shuquge.js +++ b/lib/routes/novel/shuquge.js @@ -2,7 +2,7 @@ const got = require('@/utils/got'); const cheerio = require('cheerio'); const iconv = require('iconv-lite'); -const baseUrl = 'http://www.shuquge.com/txt/'; +const baseUrl = 'http://www.sizhicn.com/txt/'; // 获取小说的最新章节列表 module.exports = async (ctx) => { const id = ctx.params.id; // 小说id @@ -10,7 +10,6 @@ module.exports = async (ctx) => { const response = await got({ method: 'get', url: `${baseUrl}${id}/index.html`, - // responseEncoding: 'gbk', //该配置项在 0.18版本中没有打包进去 responseType: 'buffer', }); const responseHtml = iconv.decode(response.data, 'utf-8');