Ejemplo n.º 1
0
 /**
  * 获取
  * @param type $content_cid
  * @param type $user_id
  */
 public static function getContentInfo($content_cid, $user_id, $tag_num = 5)
 {
     $content_id = ContentBase::getIdByCid($content_cid);
     //获取基本信息
     $content = ContentBase::getInfoByCid($content_cid);
     $user_info = self::getUserProfileVer13($content['user_id']);
     unset($content['user_id']);
     $tags = ContentTagCount::getTagList($content_id, $user_id, $tag_num, 0);
     $arr = ['content' => $content, 'user_info' => $user_info, 'tags' => $tags];
     return $arr;
 }