异常修改
This commit is contained in:
@@ -42,7 +42,9 @@ class MyExceptionHandle extends ExceptionHandler implements ExceptionHandlerInte
|
|||||||
{
|
{
|
||||||
if (!($exception instanceof MyBusinessException)) {
|
if (!($exception instanceof MyBusinessException)) {
|
||||||
Log::error("捕获到全局异常,异常类,".$exception::class." 异常信息: ".$exception->getMessage());
|
Log::error("捕获到全局异常,异常类,".$exception::class." 异常信息: ".$exception->getMessage());
|
||||||
|
if (!($exception instanceof SysException)) {
|
||||||
Log::error($exception->getTraceAsString());
|
Log::error($exception->getTraceAsString());
|
||||||
|
}
|
||||||
return json( [
|
return json( [
|
||||||
'code' => -1,
|
'code' => -1,
|
||||||
'message' => $exception->getMessage(),
|
'message' => $exception->getMessage(),
|
||||||
|
|||||||
Reference in New Issue
Block a user