改进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

@@ -46,7 +46,7 @@ class Db
if (!empty($options)) {
$this->options = array_merge($this->options, $options);
}
$this->handler = \Think\Db::instance();
$this->handler = \Think\Db::connect();
}
/**