Browse Source

Merge branch 'gq' of http://git.9026.com/roobe/miao

Mike 8 years ago
parent
commit
d4f6e3bf7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/app/Http/Controllers/Api/V1/IndexController.php

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

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);