From 3ceaa21bb69eb7fe26b4e73d33bba98a9dc7020c Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Mon, 10 Oct 2022 08:13:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E5=A5=87=E8=91=A9=E4=B9=B0?= =?UTF-8?q?=E5=AE=B6=E7=A7=80=20(#11045)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/picture.md | 2 +- lib/v2/qipamaijia/index.js | 8 +++++++- lib/v2/qipamaijia/maintainer.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/picture.md b/docs/picture.md index e4268455f..4fa32331a 100644 --- a/docs/picture.md +++ b/docs/picture.md @@ -602,7 +602,7 @@ R18 显示 ### 频道 - + ## 涂鸦王国 diff --git a/lib/v2/qipamaijia/index.js b/lib/v2/qipamaijia/index.js index 552544c32..f58b56c8d 100644 --- a/lib/v2/qipamaijia/index.js +++ b/lib/v2/qipamaijia/index.js @@ -7,7 +7,13 @@ module.exports = async (ctx) => { const cate = ctx.params.cate ?? ''; const url = `${rootUrl}/${cate}`; - const response = await got(url); + const response = await got({ + method: 'get', + url, + https: { + rejectUnauthorized: false, + }, + }); const $ = cheerio.load(response.data); const title = $('#highlight').text(); const items = $('div.col_l > div.block') diff --git a/lib/v2/qipamaijia/maintainer.js b/lib/v2/qipamaijia/maintainer.js index b09f20604..5a90fd7dd 100644 --- a/lib/v2/qipamaijia/maintainer.js +++ b/lib/v2/qipamaijia/maintainer.js @@ -1,3 +1,3 @@ module.exports = { - '/:cate?': ['Fatpandac'], + '/:cate?': ['Fatpandac', 'nczitzk'], };