Created 网页授权 (markdown)

安正超 2015-02-10 23:38:49 +08:00
parent 4904ad6756
commit 96c519b683

24
网页授权.md Normal file

@ -0,0 +1,24 @@
```php
$wechat->auth;
```
+ 生成授权链接
```php
// 生成并返回
$wechat->auth->url($to, $state, $scope);
// 直接跳转
$wechat->auth->redirect($to, $state, $scope); 直接跳转
```
+ 判断是否已经授权
```php
$wechat->auth->authorized();
```
+ 获取授权用户
```php
$wechat->auth->user();
```