diff --git a/lib/routes/lofter/tag.ts b/lib/routes/lofter/tag.ts index 684e7069eb62a7..4257c5c822e7e7 100644 --- a/lib/routes/lofter/tag.ts +++ b/lib/routes/lofter/tag.ts @@ -18,7 +18,7 @@ export const route: Route = { supportScihub: false, }, name: 'Tag', - maintainers: ['hoilc', 'nczitzk'], + maintainers: ['hoilc', 'nczitzk', 'LucunJi'], handler, description: `| new | date | week | month | total | | ---- | ---- | ---- | ----- | ----- | @@ -38,7 +38,7 @@ async function handler(ctx) { const response = await got({ method: 'post', url: apiUrl, - form: { + body: new URLSearchParams({ callCount: 1, scriptSessionId: '${scriptSessionId}187', httpSessionId: '', @@ -55,7 +55,7 @@ async function handler(ctx) { 'c0-param7': `number:${startingIndex}`, 'c0-param8': 'number:0', batchId: 493053, - }, + }), }); const dom = new JSDOM( diff --git a/lib/routes/lofter/user.ts b/lib/routes/lofter/user.ts index f3531b7f582721..65cc415f051356 100644 --- a/lib/routes/lofter/user.ts +++ b/lib/routes/lofter/user.ts @@ -18,7 +18,7 @@ export const route: Route = { supportScihub: false, }, name: 'User', - maintainers: ['hondajojo', 'nczitzk'], + maintainers: ['hondajojo', 'nczitzk', 'LucunJi'], handler, }; @@ -34,7 +34,7 @@ async function handler(ctx) { const response = await got({ method: 'post', url: `http://api.lofter.com/v2.0/blogHomePage.api?product=lofter-iphone-10.0.0`, - form: { + body: new URLSearchParams({ blogdomain: rootUrl, checkpwd: '1', following: '0', @@ -44,7 +44,7 @@ async function handler(ctx) { offset: '0', postdigestnew: '1', supportposttypes: '1,2,3,4,5,6', - }, + }), }); if (!response.data.response || response.data.response.posts.length === 0) {