FollowModel::getFriendsData PHP Method

getFriendsData() public method

获取朋友列表数据 - 不分页
public getFriendsData ( integer $uid ) : array
$uid integer 用户ID
return array 朋友列表数据
    public function getFriendsData($uid)
    {
        $data = D()->table('`' . $this->tablePrefix . 'user_follow` AS a LEFT JOIN `' . $this->tablePrefix . 'user_follow` AS b ON a.uid = b.fid AND b.uid = a.fid')->field('a.fid')->where('a.uid = ' . $uid . ' AND b.uid IS NOT NULL')->findAll();
        return $data;
    }