Kaynağa Gözat

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

chenxiqiang 6 yıl önce
ebeveyn
işleme
e05d9b92c6

+ 1
- 1
manage-server/app/Http/Controllers/ClassifyController.php Dosyayı Görüntüle

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…
İptal
Kaydet