FeedModel::getAllWeibo PHP Method

getAllWeibo() public method

后台推荐的分享(即全局置顶的)+我关注的人+我自己发布的分享+频道内后台推荐的分享,不要显示转发的分享
public getAllWeibo ( $data )
    public function getAllWeibo($data)
    {
        $mid = $GLOBALS['ts']['mid'];
        $since_id = intval($data['since_id']);
        $max_id = intval($data['max_id']);
        $count = intval($data['count']) ? intval($data['count']) : 10;
        $page = intval($data['page']);
        //获取后台置顶
        $wl_top_ids = $this->getFeedTop(true);
        // 		if($_GET['page']<2){
        // 			//获取频道推荐
        // 			$wl_recommend_ids = $this->getChannelRecomment(true);
        // 		}
        //获取我关注的人+我自己的原创分享id
        $wl_attention_ids = $this->public_timeline($type, $since_id, $max_id, $count, $page, true);
        $feed_ids = array();
        //dump($wl_recommend_ids);exit;
        // 		if($_GET['page']<2){
        // 			//添加推荐分享
        // 			$feed_ids = array_merge($feed_ids, $wl_recommend_ids);
        // 		}
        //添加关注的自己的分享
        $feed_ids = array_merge($feed_ids, $wl_attention_ids);
        //添加置顶分享
        $feed_ids = array_merge($wl_top_ids, $feed_ids);
        //去重
        // $feed_ids = array_unique($feed_ids);
        // array_multisort($feed_ids, SORT_DESC);
        return $this->formatFeed($feed_ids, true);
    }