瀏覽代碼

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

chenxiqiang 6 年之前
父節點
當前提交
e05d9b92c6
共有 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)->toList();
23
+        $top = Classify::where("location", "top")->limit(3)->get()->toArray();
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) {

Loading…
取消
儲存