|
@@ -20,9 +20,7 @@ public function index(): JsonResponse
|
|
|
$list = SportModel::where("game_time", ">=", $start)
|
|
$list = SportModel::where("game_time", ">=", $start)
|
|
|
->where("game_time", "<", $end)
|
|
->where("game_time", "<", $end)
|
|
|
->get()->makeHidden(['id']);
|
|
->get()->makeHidden(['id']);
|
|
|
- $count = SportModel::where("game_time", ">=", $start)
|
|
|
|
|
- ->where("game_time", "<", $end)->count();
|
|
|
|
|
- return $this->success(['list' => $list, 'count' => $count]);
|
|
|
|
|
|
|
+ return $this->success(['list' => $list]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function odds(): JsonResponse
|
|
public function odds(): JsonResponse
|