4
This commit is contained in:
@@ -31,8 +31,8 @@ class AccessControl implements MiddlewareInterface
|
||||
$response = json(['code' => $code, 'msg' => $msg, 'data' => []]);
|
||||
} else {
|
||||
if ($code === 401) {
|
||||
$response = response('<script> if (self !== top) { parent.location = "/app/admin"; }</script>',401);
|
||||
//$response = response('',301, ['Location'=> '/app/admin/index/index']);
|
||||
$response = response('<script> if (self !== top) { parent.location = "'.admin_path().'"; }</script>',401);
|
||||
//$response = response('',301, ['Location'=> admin_path().'/index/index']);
|
||||
} else {
|
||||
$request->app = '';
|
||||
$request->plugin = 'admin';
|
||||
|
||||
Reference in New Issue
Block a user