mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
修正拼写
This commit is contained in:
@@ -33,7 +33,7 @@ return [
|
|||||||
'illegal action name' => '非法的操作名称',
|
'illegal action name' => '非法的操作名称',
|
||||||
'url suffix deny' => '禁止的URL后缀访问',
|
'url suffix deny' => '禁止的URL后缀访问',
|
||||||
'Route Not Found' => '当前访问路由未定义',
|
'Route Not Found' => '当前访问路由未定义',
|
||||||
'Underfined db type' => '未定义数据库类型',
|
'Undefined db type' => '未定义数据库类型',
|
||||||
'variable type error' => '变量类型错误',
|
'variable type error' => '变量类型错误',
|
||||||
'PSR-4 error' => 'PSR-4 规范错误',
|
'PSR-4 error' => 'PSR-4 规范错误',
|
||||||
'not support total' => '简洁模式下不能获取数据总数',
|
'not support total' => '简洁模式下不能获取数据总数',
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class Db
|
|||||||
// 解析连接参数 支持数组和字符串
|
// 解析连接参数 支持数组和字符串
|
||||||
$options = self::parseConfig($config);
|
$options = self::parseConfig($config);
|
||||||
if (empty($options['type'])) {
|
if (empty($options['type'])) {
|
||||||
throw new \InvalidArgumentException('Underfined db type');
|
throw new \InvalidArgumentException('Undefined db type');
|
||||||
}
|
}
|
||||||
$class = false !== strpos($options['type'], '\\') ? $options['type'] : '\\think\\db\\connector\\' . ucwords($options['type']);
|
$class = false !== strpos($options['type'], '\\') ? $options['type'] : '\\think\\db\\connector\\' . ucwords($options['type']);
|
||||||
// 记录初始化信息
|
// 记录初始化信息
|
||||||
|
|||||||
Reference in New Issue
Block a user