From f95a1fba6dd21079bafc860501a690970a75eced Mon Sep 17 00:00:00 2001 From: Devil Date: Tue, 7 Sep 2021 13:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=AE=89=E8=A3=85=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/install/controller/Index.php | 11 +++++------ app/install/view/index/create.html | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/install/controller/Index.php b/app/install/controller/Index.php index a460959fc..d4c13618e 100755 --- a/app/install/controller/Index.php +++ b/app/install/controller/Index.php @@ -163,9 +163,6 @@ class Index extends Common return $ret; } - // 数据库类型默认 mysql - $params['DB_TYPE'] = 'mysql'; - // 配置文件校验 if(file_exists(ROOT.'config/database.php')) { @@ -203,9 +200,6 @@ class Index extends Common return DataReturn('数据库连接失败', -1); } - // 数据库类型默认 mysql - $params['DB_TYPE'] = 'mysql'; - // mysql版本 $ret = $this->IsVersion($db, $params['DB_CHARSET']); if($ret['code'] != 0) @@ -450,6 +444,11 @@ php; { // 请求类型 $p = [ + [ + 'checked_type' => 'empty', + 'key_name' => 'DB_TYPE', + 'error_msg' => '请选择数据库类型', + ], [ 'checked_type' => 'in', 'key_name' => 'DB_CHARSET', diff --git a/app/install/view/index/create.html b/app/install/view/index/create.html index f77eada87..2924dc930 100755 --- a/app/install/view/index/create.html +++ b/app/install/view/index/create.html @@ -20,7 +20,7 @@
- +