Ken 1 month ago
parent
commit
cf7d195eb2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Services/FixtureService.php

+ 2 - 1
app/Services/FixtureService.php

@@ -22,7 +22,8 @@ static function updateOdds()
             $sport = Sport::where('data_id', $item['fixture']['id'])->first();
             $sport->odds = json_encode($item['odds']);
             $sport->state = 1;
-            $score = $item['teams']['home']['goals'];
+            $score = "";
+            $score .= $item['teams']['home']['goals'];
             $score .= "-";
             $score .= $item['teams']['away']['goals'];
             if ($item['fixture']['status']['long'] == 'First Half') {