Skip to content

Commit

Permalink
fix qq unionid
Browse files Browse the repository at this point in the history
  • Loading branch information
anerg2046 committed Oct 30, 2019
1 parent 9c4b4db commit 20194ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/Qq.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function openid()
if (!isset($this->token['openid']) || !$this->token['openid']) {
$userID = $this->getOpenID();
$this->token['openid'] = $userID['openid'];
$this->token['unionid'] = isset($userID['unionid']) ?: '';
$this->token['unionid'] = isset($userID['unionid']) ? $userID['unionid'] : '';
}

return $this->token['openid'];
Expand Down

0 comments on commit 20194ac

Please sign in to comment.