Skip to content

Commit

Permalink
[更新]修改代码注释
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Jul 3, 2019
1 parent 633a523 commit 3adfc51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WeOpen/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function auth($redirectUri)
/**
* 第二步:通过code获取access_token
* @return mixed
* @throws \WeChat\Exceptions\LocalCacheException
*/
public function getAccessToken()
{
Expand All @@ -75,6 +76,7 @@ public function getAccessToken()
* 刷新AccessToken有效期
* @param string $refreshToken
* @return array
* @throws \WeChat\Exceptions\LocalCacheException
*/
public function refreshToken($refreshToken)
{
Expand All @@ -88,6 +90,7 @@ public function refreshToken($refreshToken)
* @param string $accessToken 调用凭证
* @param string $openid 普通用户的标识,对当前开发者帐号唯一
* @return array
* @throws \WeChat\Exceptions\LocalCacheException
*/
public function checkAccessToken($accessToken, $openid)
{
Expand All @@ -100,6 +103,7 @@ public function checkAccessToken($accessToken, $openid)
* @param string $accessToken 调用凭证
* @param string $openid 普通用户的标识,对当前开发者帐号唯一
* @return array
* @throws \WeChat\Exceptions\LocalCacheException
*/
public function getUserinfo($accessToken, $openid)
{
Expand Down
2 changes: 2 additions & 0 deletions WeOpen/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public function getConfig($authorizerAppid)
* @param array $data 请求数据
* @param bool $buildToJson
* @return array
* @throws \WeChat\Exceptions\LocalCacheException
*/
protected function httpPostForJson($url, array $data, $buildToJson = true)
{
Expand All @@ -385,6 +386,7 @@ protected function httpPostForJson($url, array $data, $buildToJson = true)
* 以GET获取接口数据并转为数组
* @param string $url 接口地址
* @return array
* @throws \WeChat\Exceptions\LocalCacheException
*/
protected function httpGetForJson($url)
{
Expand Down

0 comments on commit 3adfc51

Please sign in to comment.