|
@@ -29,7 +29,7 @@ public function index()
|
|
|
$list = $this->football('/odds/live');
|
|
$list = $this->football('/odds/live');
|
|
|
$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) {
|
|
|
$data[] = $item;
|
|
$data[] = $item;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|