/** * 删除消息 */ public function action_del() { $msg = new Msg($this->auth['uid']); $msg_id = (int) $this->getQuery('msg_id'); try { $msg->del($msg_id); $links[] = array('text' => '返回收件箱', 'href' => '/message/list'); $this->show_message('删除成功', 1, $links, true); } catch (Exception $e) { $this->show_message($e->getMessage(), 0, array(), true); } }