mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
细节优化
This commit is contained in:
@ -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']];
|
||||
|
||||
Reference in New Issue
Block a user