From 42aafb23e50bfa25081f0d923ab9fab8f0f70de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Mon, 11 Feb 2019 15:45:35 +0800 Subject: [PATCH] Update Authenticate.php --- src/Middleware/Authenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/Authenticate.php b/src/Middleware/Authenticate.php index f9cb313..20f35e2 100644 --- a/src/Middleware/Authenticate.php +++ b/src/Middleware/Authenticate.php @@ -41,7 +41,7 @@ class Authenticate { //登录状态检测 if ($this->auth->guard($guard)->guest()) { - $redirect = $request->input('redirect', $request->getUri()); + $redirect = $request->input('redirect', $request->header('referer')); // if ($request->isXmlHttpRequest()) { return response()->json([ 'code' => config('pdauth.code.unauthorized', 401),