From 79182aa90a61882639fa3f74d6ff0283c81183f3 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Sun, 24 Mar 2024 18:57:18 +0800 Subject: [PATCH] Update BuildCurd.php --- app/admin/service/curd/BuildCurd.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/admin/service/curd/BuildCurd.php b/app/admin/service/curd/BuildCurd.php index 31512de..1d2049a 100644 --- a/app/admin/service/curd/BuildCurd.php +++ b/app/admin/service/curd/BuildCurd.php @@ -275,12 +275,8 @@ class BuildCurd if ($vo['Field'] == 'delete_time') { $this->delete = true; } - } - - // 获取表名注释 - $tableSchema = Db::query("SELECT table_name,table_comment FROM information_schema.TABLES WHERE table_schema = 'easyadmin' AND table_name = '{$this->tablePrefix}{$this->table}'"); - $this->tableComment = (isset($tableSchema[0]['table_comment']) && !empty($tableSchema[0]['table_comment'])) ? $tableSchema[0]['table_comment'] : $this->table; + $this->tableComment = $this->table; } catch (\Exception $e) { throw new TableException($e->getMessage()); }