Ken 1 bulan lalu
induk
melakukan
46127410be
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Http/Controllers/Api/Test.php

+ 1 - 1
app/Http/Controllers/Api/Test.php

@@ -26,7 +26,7 @@ public function index()
 
         $sport = DB::select("SELECT * FROM sports WHERE data_id = {$id}");
         $sport = $sport[0];
-        $list = $this->football('/odds/live');
+        $list = $this->football('/odds/live',['fixture'=>$id]);
         $data[] = $sport;
         foreach ($list['response'] as $item) {
             if ($item['fixture']['id'] == $sport->data_id) {