From 1a37474eba07cdf29b7e199d1f07f55761a16d01 Mon Sep 17 00:00:00 2001 From: logdd Date: Mon, 27 Feb 2023 00:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=BD=93=E5=89=8D=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E8=BF=9B=E8=A1=8C=E8=A1=A8=E7=BB=93=E6=9E=84=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/admin/app/controller/Crud.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/admin/app/controller/Crud.php b/src/plugin/admin/app/controller/Crud.php index a2f55da..9cfb692 100644 --- a/src/plugin/admin/app/controller/Crud.php +++ b/src/plugin/admin/app/controller/Crud.php @@ -274,7 +274,7 @@ class Crud extends Base protected function inputFilter(array $data): array { $table = config('plugin.admin.database.connections.mysql.prefix') . $this->model->getTable(); - $allow_column = Util::db()->select("desc `$table`"); + $allow_column = $this->model->getConnection()->select("desc `$table`"); if (!$allow_column) { throw new BusinessException('表不存在', 2); }