mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改后台登录判断
This commit is contained in:
parent
fb7ddcbd9e
commit
17e28e6c90
@ -114,6 +114,6 @@ Middleware::add(function (Request $request, \Closure $next) {
|
||||
} elseif (NodeService::islogin()) {
|
||||
return json(['code' => 0, 'msg' => '抱歉,没有访问该操作的权限!']);
|
||||
} else {
|
||||
return json(['code' => 0, 'msg' => '抱歉,您还没有登录获取访问权限!', 'url' => url('@admin/login')]);
|
||||
return json(['code' => 0, 'msg' => '抱歉,需要登录获取访问权限!', 'url' => url('@admin/login')]);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user