From 21259666848511276c77bf4d336205fb64506d23 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Thu, 1 Apr 2021 20:17:25 +0800 Subject: [PATCH] fixed:class not found --- catch/system/route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/system/route.php b/catch/system/route.php index 2cc4d6c..298cd97 100644 --- a/catch/system/route.php +++ b/catch/system/route.php @@ -52,7 +52,7 @@ $router->group(function () use ($router) { // 获取 table $router->get('table//', function ($module, $tableClass){ - $table = sprintf('\\catchAdmin\\%s\\tables\\%s', $module, $tableClass); + $table = sprintf('\\catchAdmin\\%s\\tables\\%s', $module, ucfirst($tableClass)); return (new $table)->render(request()->param('only')); });