feat : oss

This commit is contained in:
2024-11-12 11:14:48 +08:00
parent a9f81888b7
commit 86b94d168c
7 changed files with 74 additions and 12 deletions

View File

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