|
|
@@ -22,18 +22,18 @@ public function index()
|
|
|
// $data[] = $this->football('/odds',['fixture'=>'1491915']);
|
|
|
|
|
|
// $data = FixtureService::index();
|
|
|
- $id = request()->input('id', '1492541');
|
|
|
-
|
|
|
- $sport = DB::select("SELECT * FROM sports WHERE data_id = {$id}");
|
|
|
- $sport = $sport[0];
|
|
|
- $list = $this->football('/odds/live',['fixture'=>$id]);
|
|
|
- $data[] = $sport;
|
|
|
- foreach ($list['response'] as $item) {
|
|
|
- if ($item['fixture']['id'] == $sport->data_id) {
|
|
|
- $data[] = $item;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+// $id = request()->input('id', '1492541');
|
|
|
+//
|
|
|
+// $sport = DB::select("SELECT * FROM sports WHERE data_id = {$id}");
|
|
|
+// $sport = $sport[0];
|
|
|
+ $list = $this->football('/odds/live');
|
|
|
+// $data[] = $sport;
|
|
|
+// foreach ($list['response'] as $item) {
|
|
|
+// if ($item['fixture']['id'] == $sport->data_id) {
|
|
|
+// $data[] = $item;
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// }
|
|
|
$data[] = $list;
|
|
|
return $this->success($data);
|
|
|
}
|