lip 3 روز پیش
والد
کامیت
d60c01f65a
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
                 '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_en' => $item['league']['name'],
+                'league_data' => json_encode($item['league']),
                 'state' => $status[$item['fixture']['status']['short']],//比赛状态:0未开始1进行中2已完场3延期4取消
                 'game_time' => $item['fixture']['timestamp'],
                 'updated_at' => date('Y-m-d H:i:s'),
@@ -297,6 +298,7 @@ class Sport extends Command
                     'rbt' => $item['fixture']['timestamp'],
                     'score' => isset($item['score']['fulltime']) ? "{$item['score']['fulltime']['home']}-{$item['score']['fulltime']['away']}":'-',
                     'league_en' => $item['league']['name'],
+                    'league_data' => json_encode($item['league']),
                     // 'state' => $status[$item['fixture']['status']['short']],//比赛状态:0未开始1进行中2已完场3延期4取消
                     'game_time' => $item['fixture']['timestamp'],
                     'updated_at' => now(),