public function commit()
{
if ($this->transTimes > 0) {
// Capsule::getReadPdo()->commit();
// $result = mysql_query('COMMIT', $this->_linkID);
if (!Capsule::getReadPdo()->commit()) {
throw_exception($this->error());
}
$this->transTimes = 0;
}
return true;
}