| xqd
@@ -141,7 +141,7 @@ class IndexController extends Controller
|
|
|
return $this->api(compact('users','dreams'));
|
|
|
} else{
|
|
|
$banners = $this->getBanner();
|
|
|
- $dreams = DreamInfoModel::orderBy('score','desc')->with('user')->limit(15)->paginate(15);
|
|
|
+ $dreams = DreamInfoModel::orderBy('score','desc')->with('user')->limit(15)->paginate(5);
|
|
|
$this->dreams($dreams);
|
|
|
return $this->api(compact('banners','users','dreams'));
|
|
|
}
|