Skip to content

Commit

Permalink
support null union_id (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno authored Aug 7, 2023
1 parent 742ae17 commit 7fdcb44
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 @@ -120,7 +120,7 @@ protected function mapUserToObject($user)

return (new User())->setRaw($user)->map([
'id' => $user['open_id'],
'union_id' => $user['union_id'],
'union_id' => $user['union_id'] ?? null,
'name' => $user['display_name'],
'avatar' => $user['avatar_large_url'],
]);
Expand Down

0 comments on commit 7fdcb44

Please sign in to comment.