修正Query类 改进Response类 改进异常输出

This commit is contained in:
thinkphp
2016-05-16 16:39:17 +08:00
parent 30a6bd7e8a
commit a4a14b3bf1
9 changed files with 76 additions and 42 deletions

View File

@@ -112,6 +112,16 @@ class Query
return $this->connection->execute($sql, $bind, $fetch, $getLastInsID);
}
/**
* 获取最近插入的ID
* @access public
* @return string
*/
public function getLastInsID()
{
return $this->connection->getLastInsID();
}
/**
* 获取当前的builder实例对象
* @access protected