fix: update links of 爱Q生活网 (#5688)

This commit is contained in:
Ethan Shen
2020-09-20 21:08:09 +01:00
committed by GitHub
parent b3b5a8ef72
commit 66a2d65f14
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ type 为 all 时,category 参数不支持 cost 和 free
### 最近更新
<Route author="nczitzk" example="/iqshw/latest" path="/iqshw/latest"/>
<Route author="nczitzk" example="/3k8/latest" path="/3k8/latest"/>
## 爱发电
+2 -1
View File
@@ -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'));
@@ -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');