Exemplo n.º 1
0
 public static function getInstance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 /**
  * 更新小区solr信息
  *
  * @param $commId
  */
 public function updateCommSolr($commId, $time)
 {
     $data = array('commId' => $commId, 'flag' => 1, 'updateTime' => $time);
     $res = BLL_Service_UserMessageQueue::getInstance()->post('publish?tunnel=community_update', $data);
     if ($res->status == 'ok') {
         return true;
     } else {
         return false;
     }
 }