first commit
This commit is contained in:
@@ -56,10 +56,7 @@ class ExceptionHandle extends Handle
|
||||
*/
|
||||
public function render($request, Throwable $e): Response
|
||||
{
|
||||
// if ($e instanceof CatchException){
|
||||
return CatchResponse::fail($e->getMessage(), $e->getCode());
|
||||
// }
|
||||
// 其他错误交给系统处理
|
||||
//return parent::render($request, $e);
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
}
|
||||
|
@@ -6,5 +6,6 @@ return [
|
||||
// 多语言加载
|
||||
// \think\middleware\LoadLangPack::class,
|
||||
// Session初始化
|
||||
\think\middleware\SessionInit::class
|
||||
// \think\middleware\SessionInit::class
|
||||
\think\middleware\AllowCrossDomain::class,
|
||||
];
|
||||
|
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
\jaguarjack\think\module\ThinkModuleService::class,
|
||||
\catchAdmin\CatchAdminService::class,
|
||||
];
|
Reference in New Issue
Block a user