From 6e6e5cf273b4e25992c6eec9782db2c294700512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 15 Aug 2022 17:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/Base.php b/app/admin/controller/Base.php index e6bfdc759..d88d3f55d 100644 --- a/app/admin/controller/Base.php +++ b/app/admin/controller/Base.php @@ -40,7 +40,7 @@ class Base extends Controller SystemBase::mQuery()->layTable(function () { $this->title = '数据字典管理'; $this->types = SystemBase::types(); - $this->type = input('get.type', $this->types[0] ?? '-'); + $this->type = $this->get['type'] ?? ($this->types[0] ?? '-'); }, function (QueryHelper $query) { $query->where(['deleted' => 0])->equal('type'); $query->like('code,name,status')->dateBetween('create_at'); @@ -68,6 +68,7 @@ class Base extends Controller /** * 表单数据处理 * @param array $data + * @throws \think\db\exception\DbException */ protected function _form_filter(array &$data) {