Skip to content

Commit

Permalink
Update WechatUser.php
Browse files Browse the repository at this point in the history
修复 Yii::$app->wechat->getUser() 报错
  • Loading branch information
jonneyless authored Aug 10, 2017
1 parent 32028f2 commit 6f8f0f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/WechatUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class WechatUser extends Component
* @var \Overtrue\Socialite\AccessToken
*/
public $token;
/**
* @var string
*/
public $provider

/**
* @return string
Expand All @@ -54,4 +58,4 @@ public function getOpenId()
{
return isset($this->original['openid']) ? $this->original['openid'] : '';
}
}
}

0 comments on commit 6f8f0f0

Please sign in to comment.