优化文件上传组件;

This commit is contained in:
2022-04-20 15:44:45 +08:00
parent cc29874a16
commit 3bc6b7d467
4 changed files with 28 additions and 24 deletions

View File

@@ -279,7 +279,7 @@ class BuildCurdService
}
// 获取表名注释
$tableSchema = Db::query("SELECT table_name,table_comment FROM information_schema.TABLES WHERE table_schema = 'easyadmin' AND table_name = '{$this->tablePrefix}{$this->table}'");
$tableSchema = Db::query("SELECT table_name,table_comment FROM information_schema.TABLES WHERE table_schema = 'ulthon_admin' 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;
} catch (\Exception $e) {
throw new TableException($e->getMessage());