From 8d41f473e48236e6f0f2803fc2f61ce18139ed50 Mon Sep 17 00:00:00 2001 From: Hank Date: Fri, 29 May 2026 02:04:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=B2=BE=E7=B0=A1=20/health=20?= =?UTF-8?q?=E5=9B=9E=E6=87=89=E6=AC=84=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 php_version、laravel、environment、memory_mb, 保留 status、timestamp、checks 三欄。 Co-Authored-By: Claude Sonnet 4.6 --- routes/web.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/routes/web.php b/routes/web.php index d414f41..70cdc94 100644 --- a/routes/web.php +++ b/routes/web.php @@ -25,13 +25,9 @@ Route::get('/health', function () { $healthy = $checks['db'] && $checks['redis'] && $checks['cache']; return response()->json([ - 'status' => $healthy ? 'ok' : 'degraded', - 'timestamp' => now()->toIso8601String(), - 'environment' => app()->environment(), - 'php_version' => PHP_VERSION, - 'laravel' => app()->version(), - 'memory_mb' => round(memory_get_usage(true) / 1024 / 1024, 2), - 'checks' => $checks, + 'status' => $healthy ? 'ok' : 'degraded', + 'timestamp' => now()->toIso8601String(), + 'checks' => $checks, ], $healthy ? 200 : 503); }); -- 2.52.0