Browse Source

暂时注释掉错误处理,以兼容后台

dev
李可松 4 years ago
parent
commit
d852c83d6e
  1. 4
      app/Exceptions/Handler.php

4
app/Exceptions/Handler.php

@ -76,7 +76,7 @@ class Handler extends ExceptionHandler
]); ]);
} }
//TypeError && ParseError && Exception //TypeError && ParseError && Exception
if ($e instanceof \TypeError || $e instanceof \ParseError || $e instanceof \Exception) {
/*if ($e instanceof \TypeError || $e instanceof \ParseError || $e instanceof \Exception) {
return response()->json([ return response()->json([
'code' => -1, 'code' => -1,
'msg' => $e->getMessage(), 'msg' => $e->getMessage(),
@ -96,7 +96,7 @@ class Handler extends ExceptionHandler
'file' => $e->getFile(), 'file' => $e->getFile(),
'line' => $e->getLine(), 'line' => $e->getLine(),
]); ]);
}
}*/
return parent::render($request, $e); return parent::render($request, $e);
} }
} }
Loading…
Cancel
Save