瀏覽代碼

添加分页status

chenxiqiang 6 年之前
父節點
當前提交
b8c956d6dc
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      manage-server/app/Http/Controllers/ServerInfoController.php

+ 1
- 1
manage-server/app/Http/Controllers/ServerInfoController.php 查看文件

51
     public function list(Request $request)
51
     public function list(Request $request)
52
     {
52
     {
53
         $top = ServerInfo::where("location", "top")->get();
53
         $top = ServerInfo::where("location", "top")->get();
54
-        $bottom = ServerInfo::where("location", "bottom")->get();
54
+        $bottom = ServerInfo::where("location", "bottom")->firet();
55
         return Response()->json([
55
         return Response()->json([
56
             "top" => $top,
56
             "top" => $top,
57
             "introduce" => "服务介绍",
57
             "introduce" => "服务介绍",

Loading…
取消
儲存