FeedModel::getOriginalWeibo PHP Method

getOriginalWeibo() public method

后台推荐的分享(即全局置顶的)+我关注的人+我自己发布的分享+频道内后台推荐的分享,不要显示转发的分享
public getOriginalWeibo ( $data, $type = 'original' )
    public function getOriginalWeibo($data, $type = 'original')
    {
        $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->friends_timeline($type, $mid, $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);
    }