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

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