Example #1
0
 public function getComments(EdkRoute $item)
 {
     $this->transaction->requestTransaction();
     try {
         return ['status' => 1, 'messageNum' => $item->getCommentNum(), 'messages' => $item->getComments($this->conn, $this->timeFormatter)];
     } catch (Exception $ex) {
         $this->transaction->requestRollback();
         throw $ex;
     }
 }