安装程序优化

This commit is contained in:
Devil 2021-09-07 13:40:11 +08:00
parent 33137f5a3a
commit f95a1fba6d
2 changed files with 6 additions and 7 deletions

View File

@ -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',

View File

@ -20,7 +20,7 @@
<div class="am-form-group">
<label class="am-u-sm-2 am-form-label">数据库类型</label>
<div class="am-u-sm-10">
<input type="text" name="DB_TYPE" placeholder="数据库类型" value="mysql" class="am-radius am-input-sm" disabled data-validation-message="请选择数据库类型" required />
<input type="text" name="DB_TYPE" placeholder="数据库类型" value="mysql" class="am-radius am-input-sm" readonly data-validation-message="请选择数据库类型" required />
</div>
</div>