fix(route): broken lofter route (#15310)

* fix(route): broken lofter route

* fix(routes): add my name to maintainers
This commit is contained in:
LucunJi
2024-04-21 02:28:50 +08:00
committed by GitHub
parent 24bd98e607
commit 5991ecbbbb
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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(
+3 -3
View File
@@ -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) {