| xqd
@@ -135,7 +135,7 @@ class IndexController extends Controller
|
|
|
$this->dreams($dreams);
|
|
|
return $this->api(compact('users','dreams'));
|
|
|
} elseif ($type == 'news') {
|
|
|
- $dreams = DreamInfoModel::orderBy('score','desc')->orderBy('created_at','desc')->with('user')->whereNotIn('id', $id_arr2)->limit(500)->toSql();
|
|
|
+ $dreams = DreamInfoModel::orderBy('score','desc')->orderBy('created_at','desc')->with('user')->whereNotIn('id', $id_arr2)->limit(500)->paginate(20);
|
|
|
$this->dreams($dreams);
|
|
|
return $this->api(compact('users','dreams'));
|
|
|
} else{
|