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');