public function getSoundAttachmentUrl($clientId, $attachmentId)
 {/*{{{*/
     list($url, $type, $suffix, $thumbnailUrl) =  MainDataBucket::getSoundAttachmentUrl($attachmentId);
     $this->content = array('clientId'=>$clientId, 'attachmentId'=>$attachmentId, 'url'=>$url, 
         'thumbnailUrl'=>$thumbnailUrl, 'type'=>$type, 'suffix'=>$suffix);
 }/*}}}*/
Ejemplo n.º 2
0
 /**
  * uploadSound 语音上传接口 
  * 
  * @param mixed $userId 
  * @param mixed $clientId 
  * @access public
  * @return void
  */
 public function uploadSound($userId, $clientId)
 {/*{{{*/
     $url = $type = $suffix = $thumbnailUrl = '';
     $content = MainDataBucket::upload($userId, $_FILES);
     if(false == is_array($content))
     {
         $this->setErrorCode($content);
         return 0;
     }
     list($url, $type, $suffix, $thumbnailUrl) =  MainDataBucket::getSoundAttachmentUrl($content['attachmentId']);
     $this->content = array('userId'=>$userId, 'clientId'=>$clientId, 'attachmentId'=>$content['attachmentId'], 'url' => $url, 'thumbnailUrl'=>$thumbnailUrl);  
 }/*}}}*/