From 66a2d65f140fe0c0e3f6575ffcb8c77aad1d46f7 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Mon, 21 Sep 2020 04:08:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20update=20links=20of=20=E7=88=B1Q?= =?UTF-8?q?=E7=94=9F=E6=B4=BB=E7=BD=91=20(#5688)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/other.md | 2 +- lib/router.js | 3 ++- lib/routes/{iqshw => 3k8}/latest.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename lib/routes/{iqshw => 3k8}/latest.js (95%) diff --git a/docs/other.md b/docs/other.md index ca3d5148e..0e86ecb49 100644 --- a/docs/other.md +++ b/docs/other.md @@ -247,7 +247,7 @@ type 为 all 时,category 参数不支持 cost 和 free ### 最近更新 - + ## 爱发电 diff --git a/lib/router.js b/lib/router.js index 1232c5129..63cd09049 100644 --- a/lib/router.js +++ b/lib/router.js @@ -3129,7 +3129,8 @@ router.get('/nasa/apod-ncku', require('./routes/nasa/apod-ncku')); router.get('/nasa/apod-cn', require('./routes/nasa/apod-cn')); // 爱Q生活网 -router.get('/iqshw/latest', require('./routes/iqshw/latest')); +router.get('/iqshw/latest', require('./routes/3k8/latest')); +router.get('/3k8/latest', require('./routes/3k8/latest')); // JustRun router.get('/justrun', require('./routes/justrun/index')); diff --git a/lib/routes/iqshw/latest.js b/lib/routes/3k8/latest.js similarity index 95% rename from lib/routes/iqshw/latest.js rename to lib/routes/3k8/latest.js index 28eb7deac..7c72bd865 100644 --- a/lib/routes/iqshw/latest.js +++ b/lib/routes/3k8/latest.js @@ -3,7 +3,7 @@ const cheerio = require('cheerio'); const iconv = require('iconv-lite'); module.exports = async (ctx) => { - const rootUrl = 'https://www.iqshw.com'; + const rootUrl = 'https://www.3k8.com'; const currentUrl = `${rootUrl}/post/new_100/`; const response = await got({ method: 'get', @@ -13,7 +13,7 @@ module.exports = async (ctx) => { const $ = cheerio.load(iconv.decode(response.data, 'gb2312')); const list = $('ul.list-item li') - .slice(0, 15) + .slice(0, 10) .map((_, item) => { item = $(item); const a = item.find('a');