Ken 1 tháng trước cách đây
mục cha
commit
cf7d195eb2
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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') {