mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化细节
This commit is contained in:
parent
7a4dcf4e4d
commit
459e9ae754
@ -29,7 +29,7 @@ class AdminPermission {
|
|||||||
'code' => ReturnCode::INVALID,
|
'code' => ReturnCode::INVALID,
|
||||||
'msg' => '非常抱歉,您的登录状态已丢失或已过期!',
|
'msg' => '非常抱歉,您的登录状态已丢失或已过期!',
|
||||||
'data' => []
|
'data' => []
|
||||||
])->header(config('apiAdmin.CROSS_DOMAIN'));
|
])->header(config('apiadmin.CROSS_DOMAIN'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$userInfo = json_decode($userInfo, true);
|
$userInfo = json_decode($userInfo, true);
|
||||||
@ -38,7 +38,7 @@ class AdminPermission {
|
|||||||
'code' => ReturnCode::INVALID,
|
'code' => ReturnCode::INVALID,
|
||||||
'msg' => '非常抱歉,您没有权限这么做!',
|
'msg' => '非常抱歉,您没有权限这么做!',
|
||||||
'data' => []
|
'data' => []
|
||||||
])->header(config('apiAdmin.CROSS_DOMAIN'));
|
])->header(config('apiadmin.CROSS_DOMAIN'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user