fix(route): 奇葩买家秀 (#11045)

This commit is contained in:
Ethan Shen
2022-10-10 00:13:18 +00:00
committed by GitHub
parent 5f1d9ae662
commit 3ceaa21bb6
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -602,7 +602,7 @@ R18 显示
### 频道
<Route author="Fatpandac" example="/qipamaijia/fuli" path="/qipamaijia/:cate?" :paramsDesc="['频道名,可在对应网址中找到,默认为最新']" radar="1" rssbud="1"/>
<Route author="Fatpandac nczitzk" example="/qipamaijia/fuli" path="/qipamaijia/:cate?" :paramsDesc="['频道名,可在对应网址中找到,默认为最新']" radar="1" rssbud="1"/>
## 涂鸦王国
+7 -1
View File
@@ -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')
+1 -1
View File
@@ -1,3 +1,3 @@
module.exports = {
'/:cate?': ['Fatpandac'],
'/:cate?': ['Fatpandac', 'nczitzk'],
};