From 6f8f0f0083399c3734dbe62b188852ddb45d5469 Mon Sep 17 00:00:00 2001 From: Jony Young Date: Thu, 10 Aug 2017 14:48:00 +0800 Subject: [PATCH 1/2] Update WechatUser.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 Yii::$app->wechat->getUser() 报错 --- src/WechatUser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/WechatUser.php b/src/WechatUser.php index a3e8f80..eeff18e 100644 --- a/src/WechatUser.php +++ b/src/WechatUser.php @@ -46,6 +46,10 @@ class WechatUser extends Component * @var \Overtrue\Socialite\AccessToken */ public $token; + /** + * @var string + */ + public $provider /** * @return string @@ -54,4 +58,4 @@ public function getOpenId() { return isset($this->original['openid']) ? $this->original['openid'] : ''; } -} \ No newline at end of file +} From 3e878601b3271416aa5a017b0c04932c0e35c3dc Mon Sep 17 00:00:00 2001 From: Jony Young Date: Thu, 10 Aug 2017 15:20:15 +0800 Subject: [PATCH 2/2] Update WechatUser.php --- src/WechatUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WechatUser.php b/src/WechatUser.php index eeff18e..ffdd39b 100644 --- a/src/WechatUser.php +++ b/src/WechatUser.php @@ -49,7 +49,7 @@ class WechatUser extends Component /** * @var string */ - public $provider + public $provider; /** * @return string