From 20b28f7afb75072ae52b6162ed43ea0e457b308c Mon Sep 17 00:00:00 2001 From: Hankin Date: Tue, 12 May 2026 10:41:04 +0800 Subject: [PATCH] service cert --- app/Exceptions/Handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 9db8a3d..87792dc 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -3,6 +3,7 @@ namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Log; use Throwable; class Handler extends ExceptionHandler @@ -142,7 +143,7 @@ class Handler extends ExceptionHandler if (config('app.debug')) { return $e->getMessage(); } - + Log::error($e->getMessage()); // 生产环境返回友好消息 return match (true) { $e instanceof NotFoundHttpException => '资源不存在',