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