|
@@ -81,6 +81,7 @@ class SuggestTransformer extends TransformerAbstract
|
|
'pv' => $post->data->pv,
|
|
'pv' => $post->data->pv,
|
|
'praise_count' => $post->data->praise_count,
|
|
'praise_count' => $post->data->praise_count,
|
|
'comment_count' => $post->data->comment_count,
|
|
'comment_count' => $post->data->comment_count,
|
|
|
|
+ 'collect_count' => $post->data->collect_count,
|
|
'will_collect_bean' => $post->data->will_collect_bean,
|
|
'will_collect_bean' => $post->data->will_collect_bean,
|
|
'is_like' => PostLike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_like' => PostLike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_dislike' => PostDislike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|
|
'is_dislike' => PostDislike::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
|