Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(route): daily.ts 骨朵日榜修复 #17652

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/routes/guduodata/daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import dayjs from 'dayjs';
import { art } from '@/utils/render';
import path from 'node:path';

const host = 'http://data.guduodata.com';
const host = 'http://d.guduodata.com';

const types = {
collect: {
Expand Down Expand Up @@ -46,13 +46,13 @@ export const route: Route = {
},
radar: [
{
source: ['data.guduodata.com/'],
source: ['guduodata.com/'],
},
],
name: '日榜',
maintainers: ['Gem1ni'],
handler,
url: 'data.guduodata.com/',
url: 'guduodata.com/',
};

async function handler() {
Expand All @@ -65,7 +65,7 @@ async function handler() {
type: key,
name: `[${yestoday}] ${types[key].name} - ${types[key].categories[category]}`,
category: category.toUpperCase(),
url: `${host}/show/datalist?type=DAILY&category=${category.toUpperCase()}&date=${yestoday}`,
url: `${host}/m/v3/billboard/list?type=DAILY&category=${category.toUpperCase()}&date=${yestoday}`,
}))
);
return {
Expand All @@ -76,7 +76,7 @@ async function handler() {
items.map((item) =>
cache.tryGet(item.url, async () => {
const response = await got.get(`${item.url}&t=${now}`, {
headers: { Referer: `http://data.guduodata.com/` },
headers: { Referer: `http://guduodata.com/` },
});
const data = response.data.data;
return {
Expand Down