优化db助手函数

This commit is contained in:
thinkphp
2017-05-11 18:55:47 +08:00
parent ffe7668184
commit e45d791423

View File

@@ -192,7 +192,7 @@ if (!function_exists('db')) {
* @param bool $force 是否强制重新连接
* @return \think\db\Query
*/
function db($name = '', $config = [], $force = true)
function db($name = '', $config = [], $force = false)
{
return Db::connect($config, $force)->name($name);
}