添加对实时比赛状态的支持,更新赔率和比分信息的获取逻辑

This commit is contained in:
yuchenglong
2026-01-20 15:42:21 +08:00
parent 9fadb7cc9c
commit 0c57af1ca8

View File

@@ -44,6 +44,7 @@ export function MatchCard({
if (
oddsSettings.enabled &&
oddsSettings.selectedBookmakers.length > 0 &&
match.isLive &&
!match.odds
) {
fetchOdds(match.sportId || 1, parseInt(match.id))
@@ -58,6 +59,8 @@ export function MatchCard({
oddsSettings.selectedBookmakers,
match.id,
match.odds,
match.isLive,
match.sportId,
]);
// Fetch live score detail for cards and corners info
@@ -82,6 +85,7 @@ export function MatchCard({
match.id,
match.leagueKey,
match.sportId,
match.isLive,
]);
// 当外部传入的 match.fav 改变时,更新内部状态