mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改网页授权重定向为301
This commit is contained in:
parent
46a8d967a6
commit
12697c594a
@ -135,8 +135,9 @@ class WechatService
|
|||||||
}
|
}
|
||||||
if (($rcode = $request->get('rcode', false))) {
|
if (($rcode = $request->get('rcode', false))) {
|
||||||
redirect(decode($rcode), [], 301)->send();
|
redirect(decode($rcode), [], 301)->send();
|
||||||
|
} else {
|
||||||
|
throw new Exception('网页授权异常,请稍候再试!', '503');
|
||||||
}
|
}
|
||||||
throw new Exception('网页授权异常,请稍候再试!', '503');
|
|
||||||
case 'thr':
|
case 'thr':
|
||||||
default:
|
default:
|
||||||
$result = self::wechat()->oauth(session_id(), $request->url(true), $fullMode);
|
$result = self::wechat()->oauth(session_id(), $request->url(true), $fullMode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user