gq 8 anos atrás
pai
commit
f6abd765a4

+ 0 - 3
server/app/Http/Controllers/Api/V1/IndexController.php

xqd
@@ -192,17 +192,14 @@ class IndexController extends Controller
         $type = $request->type;
         if ($type == 'trend') {
             $dreams = DreamInfoModel::orderBy('score','desc')->offset(20)->limit(100)->paginate(20);
-            $this->dreams($dreams);
             return $this->api(compact('users','dreams'));
         } elseif ($type == 'news') {
             $dreams = DreamInfoModel::orderBy('score','desc')->offset(100)->limit(500)->paginate(20);
-            $this->dreams($dreams);
             return $this->api(compact('users','dreams'));
         } else{
             $banner = $this->getBanner();
     //        获取其他用户信息 及梦想
             $dreams = DreamInfoModel::orderBy('score','desc')->limit(20)->paginate(20);
-//            $this->dreams($dreams);
             return $this->api(compact('banner','users','dreams'));
         }
     }