需要重新整合框架

This commit is contained in:
augushong
2019-10-09 14:03:10 +08:00
parent 79a78a889e
commit 13d8d1777d
8 changed files with 130 additions and 37 deletions

View File

@@ -61,7 +61,6 @@ class ExceptionHandle extends Handle
public function render($request, Throwable $e): Response
{
// 添加自定义异常处理机制
// 其他错误交给系统处理
return parent::render($request, $e);
}

View File

@@ -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(),

View File

@@ -11,7 +11,7 @@ class PermissionRecord
{
$current_access_info = [
'app'=>$request->app(),
'app'=>app('http')->getName(),
'controller'=>$request->controller(),
'action'=>$request->action()
];