|
@@ -49,6 +49,7 @@ class VideoTransformer extends TransformerAbstract
|
|
|
'praise_count' => $post->data->praise_count,
|
|
|
'collect_count' => $post->data->collect_count,
|
|
|
'comment_count' => $post->data->comment_count,
|
|
|
+ 'will_collect_bean' => $post->data->will_collect_bean + 3 * $post->data->pv,
|
|
|
'is_like' => PostLike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
|
'is_collect' => PostCollect::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
|
'is_follow' => $isFollow,
|