wzq пре 5 година
родитељ
комит
9857c1aad3

+ 1 - 1
app/Repositories/FeedRepositories.php

@@ -215,7 +215,7 @@ class FeedRepositories
             'img' => $post['img'],
             'imgs' => $imgs,
             'video' => $post['video'],
-            'pv' => $post->data->pv,
+            'pv' => getNumber($post->data->pv),
             'praise_count' => $post->data->praise_count,
             'comment_count' => $post->data->comment_count,
             'available_bean' => $post->data->available_bean,

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

@@ -49,7 +49,7 @@ class PostTransformer extends TransformerAbstract
             'img' => $post['img'],
             'imgs' => $imgs,
             'video' => $post['video'],
-            'pv' => $post->data->pv,
+            'pv' => getNumber($post->data->pv),
             'praise_count' => $post->data->praise_count,
             'collect_count' => $post->data->collect_count,
             'comment_count' => $post->data->comment_count,

+ 1 - 1
app/Transformers/Topic/TopicPostTransformer.php

@@ -85,7 +85,7 @@ class TopicPostTransformer extends TransformerAbstract
             'img' => $post['img'],
             'imgs' => $imgs,
             'video' => $post['video'],
-            'pv' => $post->data->pv,
+            'pv' => getNumber($post->data->pv),
             'praise_count' => $post->data->praise_count,
             'comment_count' => $post->data->comment_count,
             'will_collect_bean' => $post->data->will_collect_bean + 3 * $post->data->pv,