feat : oss
This commit is contained in:
@@ -34,8 +34,7 @@ class ErrExceptionHandler extends ExceptionHandler
|
||||
public function handle(Throwable $throwable, ResponseInterface $response): ResponseInterface
|
||||
{
|
||||
if ($throwable instanceof ErrException) {
|
||||
$url = $this->request->path();
|
||||
$urlArr = explode('/',$url);
|
||||
$urlArr = explode('/',$this->request->path());
|
||||
|
||||
$result = match ($urlArr[0]) {
|
||||
'api' => $this->apiReturn->error($throwable->getMessage(),$throwable->getCode()),
|
||||
|
||||
Reference in New Issue
Block a user