From 17dad9a9f6db115e06a4fb48c4747ea7f62a1916 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:29:33 +0800 Subject: [PATCH] Update SystemLog.php --- app/admin/middleware/SystemLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/middleware/SystemLog.php b/app/admin/middleware/SystemLog.php index 4ae2812..8dd47d8 100644 --- a/app/admin/middleware/SystemLog.php +++ b/app/admin/middleware/SystemLog.php @@ -52,7 +52,7 @@ class SystemLog $pathInfoExp = explode('/', $pathInfo); $pathInfoExp = explode('.', $pathInfoExp[0] ?? ''); $_controller = $pathInfoExp[0] ?? ''; - $_action = strtolower($pathInfoExp[1] ?? ''); + $_action = ucfirst($pathInfoExp[1] ?? ''); if ($_controller && $_action) { $className = "app\admin\controller\\{$_controller}\\{$_action}"; $reflectionClass = new \ReflectionClass($className);