deploy: auto commit repo-root changes 2026-07-11 12:03:08

This commit is contained in:
hajimi
2026-07-11 12:03:08 +08:00
parent 3a5d571e53
commit 42d243971e
3 changed files with 94 additions and 19 deletions
@@ -97,16 +97,11 @@ class MatchLiveService
return '';
}
public static function getLiveCards(
int $sportType = 0,
string $leagueName = '',
bool $worldCupOnly = false
): array
public static function getLiveCards(int $sportType = 0, string $leagueName = ''): array
{
$query = MatchLive::alias('live')
->join('match m', 'm.id = live.match_id')
->where(['m.is_show' => 1])
->where([['m.status', '<>', 2]]);
->leftJoin('match m', 'm.id = live.match_id')
->where('live.fetch_status', 1);
if ($sportType > 0) {
$query->where('m.sport_type', $sportType);
@@ -114,13 +109,6 @@ class MatchLiveService
if ($leagueName !== '') {
$query->where('m.league_name', $leagueName);
}
if ($worldCupOnly) {
$query
->where(function ($query) {
$query->where('m.league_name', '世界杯')
->whereOr('m.competition_id', 61);
});
}
$rows = $query
->field([
@@ -210,6 +198,6 @@ class MatchLiveService
public static function getWorldCupLiveCards(): array
{
return self::getLiveCards(0, '', true);
return self::getLiveCards();
}
}