lip 1 неделя назад
Родитель
Сommit
362a594c19
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/Console/Commands/Sport.php

+ 2 - 0
app/Console/Commands/Sport.php

@@ -184,6 +184,7 @@ class Sport extends Command
                 'rbt' => $item['fixture']['timestamp'],
                 'score' => isset($item['goals']) ? "{$item['goals']['home']}-{$item['goals']['away']}":'-',
                 'extra_score' => isset($item['score']['extratime']) ? "{$item['score']['extratime']['home']}-{$item['score']['extratime']['away']}" : "",//加时赛比分
+                'league_id' => $item['league']['id'],
                 'league_en' => $item['league']['name'],
                 'league_data' => json_encode($item['league']),
                 'state' => $status[$item['fixture']['status']['short']],//比赛状态:0未开始1进行中2已完场3延期4取消
@@ -308,6 +309,7 @@ class Sport extends Command
                     'half_score' => "{$item['score']['halftime']['home']}-{$item['score']['halftime']['away']}",
                     'rbt' => $item['fixture']['timestamp'],
                     'score' => isset($item['score']['fulltime']) ? "{$item['score']['fulltime']['home']}-{$item['score']['fulltime']['away']}":'-',
+                    'league_id' => $item['league']['id'],
                     'league_en' => $item['league']['name'],
                     'league_data' => json_encode($item['league']),
                     // 'state' => $status[$item['fixture']['status']['short']],//比赛状态:0未开始1进行中2已完场3延期4取消