fix: clickme form type due to got v10 (#3938)

This commit is contained in:
hoilc 2020-02-09 19:45:38 +08:00 committed by GitHub
parent a365429e68
commit babe4e48a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -14,7 +14,14 @@ module.exports = async (ctx) => {
headers: {
Referer: url,
},
form: `articleType=${site ? 'r18' : 'article'}&subtype=${grouping}&subtypeSlug=${encodeURIComponent(name)}&device=&limit=10&page=1`,
form: {
articleType: site ? 'r18' : 'article',
subtype: grouping,
subtypeSlug: encodeURIComponent(name),
device: '',
limit: 10,
page: 1,
},
});
const category_name = name === 'new' ? '最新' : response.data.data.items[0].categoryName[0].name;