Просмотр исходного кода

将server_info get功能迁移到classify里面,修复混淆问题

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

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

20
      */
20
      */
21
     public function home(Request $request)
21
     public function home(Request $request)
22
     {
22
     {
23
-        $top = Classify::where("location", "top")->limit(3);
23
+        $top = Classify::where("location", "top")->limit(3)->toList();
24
         $bottom = Classify::where("location", "bottom")->first();
24
         $bottom = Classify::where("location", "bottom")->first();
25
 
25
 
26
         $tops = array_map(function ($t) {
26
         $tops = array_map(function ($t) {

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