mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 11:32:08 +00:00
Updated 网页授权 (markdown)
parent
ffa85e6916
commit
614aab6999
4
网页授权.md
4
网页授权.md
@ -6,9 +6,9 @@
|
||||
|
||||
```php
|
||||
// 生成并返回
|
||||
$wechat->auth->url($to, $scope = 'snsapi_base', $state = 'STATE');
|
||||
$wechat->auth->url($to, 'snsapi_base', 'STATE');
|
||||
// 直接跳转
|
||||
$wechat->auth->redirect($to, $scope = 'snsapi_base', $state = 'STATE'); 直接跳转
|
||||
$wechat->auth->redirect($to, 'snsapi_base', 'STATE'); 直接跳转
|
||||
```
|
||||
|
||||
> 注意:上面的 $scope 与 $state 通常都不用传
|
||||
|
Loading…
Reference in New Issue
Block a user