改进Db类 traits\Query 更改为 traits\Transaction

This commit is contained in:
thinkphp
2016-01-22 12:34:18 +08:00
parent 6acd3f7551
commit ec4f187aab
7 changed files with 16 additions and 12 deletions

View File

@@ -93,7 +93,7 @@ function D($name = '', $layer = MODEL_LAYER)
*/
function db($config = [])
{
return \think\Db::instance($config);
return \think\Db::connect($config);
}
/**