Ken 1 月之前
父節點
當前提交
e0faa9c0ae
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/Http/Controllers/Api/Sport.php

+ 1 - 3
app/Http/Controllers/Api/Sport.php

@@ -20,9 +20,7 @@ public function index(): JsonResponse
         $list = SportModel::where("game_time", ">=", $start)
             ->where("game_time", "<", $end)
             ->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