From 29ce2cdb7c8f788ff510e52708c8d3d6d7ff10b7 Mon Sep 17 00:00:00 2001 From: owen <32561126+owen0o0@users.noreply.github.com> Date: Sun, 28 May 2023 13:36:13 +0800 Subject: [PATCH] Update OAuth2.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 百度openid字段改为“openid” --- src/Baidu/OAuth2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }