wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
58dcc754b1

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

@@ -64,7 +64,7 @@ class DetailTransformer extends TransformerAbstract
             '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_collect' => PostCollect::where('post_id', $post['id'])->where('uid', $this->uid)->exists()?1:0,
-            'is_follow' => $isFollow,
+            'follow_status' => $isFollow,
         ];
     }
 }

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

@@ -86,7 +86,7 @@ class SuggestTransformer extends TransformerAbstract
             'is_dislike' => PostDislike::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,
             'comment' => $comment,
-            'is_follow' => $isFollow,
+            'follow_status' => $isFollow,
         ];
     }
 }

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

@@ -50,7 +50,7 @@ class VideoTransformer extends TransformerAbstract
             'comment_count' => $post->data->comment_count,
             '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,
+            'follow_status' => $isFollow,
         ];
     }
 }