| xqd
@@ -91,7 +91,7 @@ class IndexController extends Controller
|
|
|
$id_arr1 = array_column($arr1,'id');
|
|
|
$arr2 =DreamInfoModel::orderBy('score','desc')->limit(120)->select('id')->get()->toArray();
|
|
|
$id_arr2 = array_column($arr2,'id');
|
|
|
- $users = [];
|
|
|
+ $users = UserInfoModel::all()->toArray();
|
|
|
$type = $request->type;
|
|
|
if ($type == 'trend') {
|
|
|
$dreams = DreamInfoModel::orderBy('score','desc')->with('user')->whereNotIn('id', $id_arr1)->limit(100)->paginate(20);
|