细节优化

This commit is contained in:
Devil
2021-04-07 14:17:35 +08:00
parent f26d24cf11
commit 98aa293e95
40 changed files with 1612 additions and 806 deletions

View File

@ -335,8 +335,11 @@ php;
// sql文件
$sql = file_get_contents(ROOT.'config/shopxo.sql');
//替换表前缀
$sql = str_replace("`s_", " `{$params['DB_PREFIX']}", $sql);
// 替换表前缀
if($params['DB_PREFIX'] != 'sxo_')
{
$sql = str_replace("`sxo_", " `{$params['DB_PREFIX']}", $sql);
}
// 编码替换,utf8mb4则做替换操作
$charset = $this->charset_type_list[$params['DB_CHARSET']];