Browse Source

添加分页status

chenxiqiang 6 years ago
parent
commit
6f2f92bf65
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      manage-server/app/Http/Controllers/ServerInfoController.php

+ 2
- 2
manage-server/app/Http/Controllers/ServerInfoController.php View File

@@ -50,8 +50,8 @@ class ServerInfoController extends Controller
50 50
      */
51 51
     public function list(Request $request)
52 52
     {
53
-        $top = ServerInfo::where("location", "top");
54
-        $bottom = ServerInfo::where("location", "bottom");
53
+        $top = ServerInfo::where("location", "top")->get();
54
+        $bottom = ServerInfo::where("location", "bottom")->get();
55 55
         return Response()->json([
56 56
             "top" => $top,
57 57
             "introduce" => "服务介绍",

Loading…
Cancel
Save