wzq 5 yıl önce
ebeveyn
işleme
57178d2ff5
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      app/Transformers/Post/PostTransformer.php

+ 4 - 4
app/Transformers/Post/PostTransformer.php

@@ -29,11 +29,11 @@ class PostTransformer extends TransformerAbstract
             'topic' => $post->topic(),
             'content' => subtext($post['content'], 20),
             'location' => $post['location'],
-            'pv' => $post->data->pv,
-            'praise_count' => $post->data->praise_count,
-            'share_count' => $post->data->share_count,
+            'pv' => $post->data->pv_real.'/'.$post->data->pv,
+            'praise_count' => $post->data->praise_real_count.'/'.$post->data->praise_count,
+            'share_count' => $post->data->share_real_count.'/'.$post->data->share_count,
             'comment_count' => $post->data->comment_count,
-            'collect_count' => $post->data->collect_count,
+            'collect_count' => $post->data->collect_real_count.'/'.$post->data->collect_count,
             'will_collect_bean' => $post->data->will_collect_bean,
             'is_suggest' => $post['is_suggest'],
         ];