fix(route): 奇葩买家秀 (#11045)
This commit is contained in:
parent
5f1d9ae662
commit
3ceaa21bb6
|
|
@ -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,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,3 +1,3 @@
|
|||
module.exports = {
|
||||
'/:cate?': ['Fatpandac'],
|
||||
'/:cate?': ['Fatpandac', 'nczitzk'],
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue