Skip to content

Commit

Permalink
fix: 签到若未登录,不返回rank字段
Browse files Browse the repository at this point in the history
(cherry picked from commit ed7abb8ce2f4a0eebf16736549970c5d078dab41)
  • Loading branch information
HHHCODE authored and mutoe committed Feb 20, 2019
1 parent 2a9e44b commit f00c455
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,7 +55,7 @@ public function index(Request $request, ResponseFactoryContract $response, UserE
return $item->user;
})
->filter()
->map(function (UserModel $user) {
->map(function (UserModel $user, $key) use ($offset) {
$user->follwing = false;
$user->follower = false;

Expand Down

0 comments on commit f00c455

Please sign in to comment.