public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 public function handle_request_internal()
 {
     $brokerId = $this->_params['brokerId'];
     $datetime = intval($this->_params['datetime']) ? $this->_params['datetime'] : $_SERVER['REQUEST_TIME'] - 90 * 86400;
     $announce_list_num = Bll_Mobile_AnnounceBiz::get_instance()->get_list_num($datetime);
     $return = array();
     $return["status"] = "ok";
     $return['data']['newMessage'] = $announce_list_num;
     return $return;
 }
 /**
  * 从announce表获取相应的信息
  * @param $queueid 队列ID
  * @return array
  */
 public function readAnnounceQueueInfo($queueid)
 {
     $QueueBll = Bll_Mobile_AnnounceBiz::get_instance();
     $where = "announce_id > ? and is_deleted=0 and push_status = 0 and announce_type <> ?";
     return $QueueBll->get_by_where($where, array($queueid, 1));
 }