Update Authenticate.php

This commit is contained in:
候学杰 2019-02-11 15:45:35 +08:00
parent 2b9569d642
commit 42aafb23e5

View File

@ -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),