Browse Source

评论列表

wzq 5 years ago
parent
commit
21ce1cdb84
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Transformers/Post/CommentTransformer.php

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

@@ -24,6 +24,7 @@ class CommentTransformer extends TransformerAbstract
         }
         return [
             'id' => $postComment['id'],
+            'post_id' => $postComment['post_id'],
             'parent_id' => $postComment['parent_id'],
             'uid' => $postComment['uid'],
             'username' => $postComment['username'],