fix: smzdm

This commit is contained in:
DIYgod
2025-05-29 17:19:00 +08:00
parent 6b6c611aa7
commit 5b84d70d27
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ async function handler(ctx) {
const response = await got(`https://www.smzdm.com/top/json_more`, {
headers: {
Referer: 'https://www.smzdm.com/top/',
Referer: 'https://www.smzdm.com/top',
...getHeaders(),
},
searchParams: {
+1
View File
@@ -1,6 +1,7 @@
import { config } from '@/config';
export const getHeaders = () => ({
accept: 'application/json, text/javascript, */*; q=0.01',
cookie: config.smzdm.cookie,
'x-requested-with': 'XMLHttpRequest',
});