Skip to content

Commit

Permalink
Add missing unionid
Browse files Browse the repository at this point in the history
  • Loading branch information
xutl authored and m1guelpf committed Oct 11, 2018
1 parent dac7d58 commit dee717f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Provider.php
Expand Up @@ -101,6 +101,7 @@ protected function mapUserToObject(array $user)
{
return (new User())->setRaw($user)->map([
'id' => $user['openid'],
'unionid' => isset($user['unionid']) ? $user['unionid'] : null,
'nickname' => isset($user['nickname']) ? $user['nickname'] : null,
'avatar' => isset($user['headimgurl']) ? $user['headimgurl'] : null,
'name' => null,
Expand Down

0 comments on commit dee717f

Please sign in to comment.