diff --git a/src/Baidu/OAuth2.php b/src/Baidu/OAuth2.php index 086b629..47bedd9 100644 --- a/src/Baidu/OAuth2.php +++ b/src/Baidu/OAuth2.php @@ -136,7 +136,7 @@ public function getUserInfo($accessToken = null) $this->result = $response->json(true); if (!isset($this->result['error_description'])) { - $this->openid = $this->result['uid']; + $this->openid = $this->result['openid']; return $this->result; }