添加网球详情

This commit is contained in:
yuchenglong
2026-01-22 18:48:39 +08:00
parent a279083252
commit c63753e631
16 changed files with 1142 additions and 32 deletions

View File

@@ -167,7 +167,7 @@ export const fetchTodayMatches = async (options: {
const year = options.date.getFullYear();
const month = String(options.date.getMonth() + 1).padStart(2, "0");
const day = String(options.date.getDate()).padStart(2, "0");
params.date = `${year}-${month}-${day}`;
params.date = `${year}-${month}-${day}`;
} else {
params.date = options.date;
}
@@ -214,11 +214,11 @@ export const fetchLiveScore = async (
leagueId?: number,
timezone?: string,
): Promise<LiveScoreMatch[]> => {
// console.log("Fetching live scores with params:", {
// sportId,
// leagueId,
// timezone,
// });
console.log("Fetching live scores with params:", {
sportId,
leagueId,
timezone,
});
try {
const params: { sport_id: number; league_id?: number; timezone?: string } =
{