/** * 事务回滚 */ public function rollBackTrans() { if ($this->pdo->inTransaction()) { $this->pdo->rollBack(); } }