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