mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正
This commit is contained in:
@@ -41,7 +41,7 @@ class Db
|
|||||||
if (empty($options['type'])) {
|
if (empty($options['type'])) {
|
||||||
throw new Exception('db type error');
|
throw new Exception('db type error');
|
||||||
}
|
}
|
||||||
$class = !empty($options['namespace']) ? $options['namespace'] : '\\think\\db\\driver\\') . ucwords($options['type'];
|
$class = (!empty($options['namespace']) ? $options['namespace'] : '\\think\\db\\driver\\') . ucwords($options['type']);
|
||||||
self::$instances[$md5] = new $class($options);
|
self::$instances[$md5] = new $class($options);
|
||||||
}
|
}
|
||||||
self::$instance = self::$instances[$md5];
|
self::$instance = self::$instances[$md5];
|
||||||
|
|||||||
Reference in New Issue
Block a user