Skip to content

Commit

Permalink
fix a bug about array field case
Browse files Browse the repository at this point in the history
  • Loading branch information
x12311231 committed Oct 14, 2022
1 parent 187163c commit c3a00bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function getUserByToken($token)
protected function mapUserToObject(array $user)
{
return (new User())->setRaw($user)->map([
'id' => $user['openid'],
'id' => isset($user['openID']) ? $user['openID'] : null,
'openid' => isset($user['openID']) ? $user['openID'] : null,
'nickname' => isset($user['displayName']) ? $user['displayName'] : null,
'avatar' => isset($user['headPictureURL']) ? $user['headPictureURL'] : null,
Expand Down

0 comments on commit c3a00bd

Please sign in to comment.