Procházet zdrojové kódy

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

chenxiqiang před 6 roky
rodič
revize
21b7a83b07

+ 1
- 1
manage-server/app/Http/Controllers/ClassifyController.php Zobrazit soubor

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) {

Loading…
Zrušit
Uložit