public function getFollowingList($map, $uid, $app, $type, $limit = 10)
{
// 读取列表
$map['_string'] = "uid IN (SELECT fid FROM {$this->tablePrefix}user_follow WHERE uid={$uid}) OR uid={$uid}";
!empty($app) && ($map['app'] = $app);
!empty($type) && ($map['type'] = $type);
if ($map['type'] == 'post') {
unset($map['type']);
$map['is_repost'] = 0;
}
$feedlist = $this->field('feed_id')->where($map)->order('publish_time DESC')->findPage($limit);
if (!$feedlist) {
$this->error = L('PUBLIC_INFO_GET_FAIL');
// 获取信息失败
return false;
}
$feed_ids = getSubByKey($feedlist['data'], 'feed_id');
$feedlist['data'] = $this->getFeeds($feed_ids);
return $feedlist;
}