[更新]修改网页授权重定向为301

This commit is contained in:
Anyon 2018-03-26 18:46:06 +08:00
parent 46a8d967a6
commit 12697c594a

View File

@ -135,8 +135,9 @@ class WechatService
}
if (($rcode = $request->get('rcode', false))) {
redirect(decode($rcode), [], 301)->send();
} else {
throw new Exception('网页授权异常,请稍候再试!', '503');
}
throw new Exception('网页授权异常,请稍候再试!', '503');
case 'thr':
default:
$result = self::wechat()->oauth(session_id(), $request->url(true), $fullMode);