Exemple #1
0
 public function publishFriendCircle($parameter)
 {
     $da = $this->conn;
     $da_im = $this->conn_im;
     $user = $parameter["user"];
     $conv_content = isset($parameter["content"]) ? $parameter["content"] : null;
     $fileid = isset($parameter["fileid"]) ? $parameter["fileid"] : array();
     $conv_type_id = "00";
     $post_to_group = "ALL";
     $post_to_circle = "9999";
     $conv_id = SysSeq::GetSeqNextValue($da, "we_convers_list", "conv_id");
     $conv = new \Justsy\BaseBundle\Business\Conv();
     $success = $conv->Broadcast($da, $da_im, $user, $conv_id, $conv_type_id, $conv_content, $post_to_group, $post_to_circle, $fileid, "00", $this->container);
     //发布成功才发送出席
     if ($success) {
         $inputArea = new \Justsy\BaseBundle\Controller\CInputAreaController();
         $inputArea->setContainer($this->container);
         $inputArea->sendPresence($conv_id, $da, "9999", "ALL", "trend");
     }
     return array('success' => $success, 'conv_id' => $conv_id);
 }