From 86cdbd1a66b755b7a8bc176ece3089321075e84c Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 19 Jun 2017 11:14:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E5=A4=8D=E5=90=8E?= =?UTF-8?q?=E5=8F=B0ajax=E4=BC=9A=E8=AF=9D=E8=B6=85=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/hook/AccessAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/hook/AccessAuth.php b/extend/hook/AccessAuth.php index 957be9282..b087917f2 100644 --- a/extend/hook/AccessAuth.php +++ b/extend/hook/AccessAuth.php @@ -45,7 +45,7 @@ class AccessAuth { // 用户登录状态检查 if ((!empty($vars['checkAuth']) || !empty($vars['checkLogin'])) && !session('user')) { if ($this->request->isAjax()) { - $result = ['code' => 0, 'msg' => '抱歉, 您还没有登录获取访问权限!', 'data' => '', 'url' => '@admin/login', 'wait' => 3]; + $result = ['code' => 0, 'msg' => '抱歉, 您还没有登录获取访问权限!', 'data' => '', 'url' => url('@admin/login'), 'wait' => 3]; throw new HttpResponseException(json($result)); } throw new HttpResponseException(redirect('@admin/login'));