chenxiqiang 7 лет назад
Родитель
Сommit
6f2f92bf65
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      manage-server/app/Http/Controllers/ServerInfoController.php

+ 2
- 2
manage-server/app/Http/Controllers/ServerInfoController.php Просмотреть файл

50
      */
50
      */
51
     public function list(Request $request)
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
         return Response()->json([
55
         return Response()->json([
56
             "top" => $top,
56
             "top" => $top,
57
             "introduce" => "服务介绍",
57
             "introduce" => "服务介绍",

Загрузка…
Отмена
Сохранить