mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
需要重新整合框架
This commit is contained in:
@@ -61,7 +61,6 @@ class ExceptionHandle extends Handle
|
||||
public function render($request, Throwable $e): Response
|
||||
{
|
||||
// 添加自定义异常处理机制
|
||||
|
||||
// 其他错误交给系统处理
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
|
||||
@@ -19,13 +19,13 @@ class AdminLog
|
||||
}
|
||||
|
||||
|
||||
$is_exit = $logged_admin_permission->where('app',$request->app())
|
||||
$is_exit = $logged_admin_permission->where('app',app('http')->getName())
|
||||
->where('controller',$request->controller())
|
||||
->where('action',$request->action());
|
||||
|
||||
if(!$is_exit->isEmpty()){
|
||||
AppAdminLog::create([
|
||||
'app'=>$request->app(),
|
||||
'app'=>app('http')->getName(),
|
||||
'controller'=>$request->controller(),
|
||||
'action'=>$request->action(),
|
||||
'param'=>$request->param(),
|
||||
|
||||
@@ -11,7 +11,7 @@ class PermissionRecord
|
||||
{
|
||||
|
||||
$current_access_info = [
|
||||
'app'=>$request->app(),
|
||||
'app'=>app('http')->getName(),
|
||||
'controller'=>$request->controller(),
|
||||
'action'=>$request->action()
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user