/** * 事务回滚 * @return boolen * @throws ThinkExecption */ public function rollback() { if ($this->transTimes > 0) { // $result = mysql_query('ROLLBACK', $this->_linkID); $this->transTimes = 0; if (!Capsule::getReadPdo()->rollBack()) { throw_exception($this->error()); } } return true; }