wzq 5 rokov pred
rodič
commit
e8161b2836

+ 1 - 0
app/Transformers/Post/DetailTransformer.php

@@ -59,6 +59,7 @@ class DetailTransformer extends TransformerAbstract
             'video' => $post['video'],
             'pv' => $post->data->pv,
             'praise_count' => $post->data->praise_count,
+            'collect_count' => $post->data->collect_count,
             'comment_count' => $post->data->comment_count,
             'available_bean' => $post->data->available_bean,
             'will_collect_bean' => $post->data->will_collect_bean,

+ 1 - 0
app/Transformers/Post/SuggestTransformer.php

@@ -81,6 +81,7 @@ class SuggestTransformer extends TransformerAbstract
             'pv' => $post->data->pv,
             'praise_count' => $post->data->praise_count,
             'comment_count' => $post->data->comment_count,
+            'collect_count' => $post->data->collect_count,
             'will_collect_bean' => $post->data->will_collect_bean,
             '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,