安装编码选择修复

feat/task1-c-wallet
gongfuxiang 2019-01-19 13:40:30 +08:00
parent d3067f0b7a
commit f27b7b61ad
1 changed files with 4 additions and 4 deletions

View File

@ -259,8 +259,8 @@ return [
'dsn' => '',
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
'charset' => '{$this->charset_type_list[$params['DB_CHARSET']]['charset']}',
// 数据库编码默认采用utf8mb4
'charset' => '{$params['DB_CHARSET']}',
// 数据库表前缀
'prefix' => '{$params['DB_PREFIX']}',
// 数据库调试模式
@ -466,8 +466,8 @@ php;
\PDO::ATTR_CASE => \PDO::CASE_LOWER,
\PDO::ATTR_EMULATE_PREPARES => true,
],
// 数据库编码默认采用utf8
'charset' => 'utf8mb4',
// 数据库编码默认采用utf8mb4
'charset' => $params['DB_CHARSET'],
// 数据库表前缀
'prefix' => $params['DB_PREFIX'],
]);