未登录跳转URL修改

This commit is contained in:
hdm 2022-06-18 09:16:10 +08:00
parent fe1f0873a7
commit 304af923b1

View File

@ -24,7 +24,7 @@ class Auth
if ($action == 'user') {
$session_user = get_config('app.session_user');
if (!Session::has($session_user)) {
return $request->isAjax() ? to_assign(404, '请先登录') : redirect((string) url('/home/login/errorshow'));
return $request->isAjax() ? to_assign(404, '请先登录') : redirect((string) url('/home/login/index'));
}
}
return $next($request);