userInfo($post['uid']); $postInfo = $this->getPostInfo($post['id']); return [ 'id' => $post['id'], 'type' => $post['type'], 'created_at' => $post['created_at'], 'uid' => $post['uid'], 'username' => $user['username'], 'avatar' => $user['avatar'], 'topic' => $this->getTopic($post['topic_ids']), 'title' => $post['title'], 'content' => $post['content'], 'location' => $post['location'], 'img' => $post['img'], 'imgs' => $postInfo['imgs'], 'video' => $post['video'], 'pv' => getNumber($postInfo['pv']), 'praise_count' => $postInfo['praise_count'], 'collect_count' => $postInfo['collect_count'], 'comment_count' => $postInfo['comment_count'], 'available_bean' => $postInfo['available_bean'], 'will_collect_bean' => $postInfo['will_collect_bean'], ]; } }