mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]增加又模式网页授权兼容
This commit is contained in:
parent
000c328161
commit
dcda1c9bc8
@ -103,8 +103,8 @@ class WechatService
|
||||
case 'api':
|
||||
$wechat = self::oauth();
|
||||
if (request()->get('state') !== $appid) {
|
||||
$snsapi = empty($fullMode) ? 'snsapi_base' : 'snsapi_userinfo';
|
||||
$baseUrl = request()->url(true);
|
||||
$snsapi = empty($fullMode) ? 'snsapi_base' : 'snsapi_userinfo';
|
||||
$param = (strpos($baseUrl, '?') !== false ? '&' : '?') . 'rcode=' . encode($baseUrl);
|
||||
$OauthUrl = $wechat->getOauthRedirect($baseUrl . $param, $appid, $snsapi);
|
||||
redirect($OauthUrl, [], 301)->send();
|
||||
|
Loading…
x
Reference in New Issue
Block a user