wzq преди 5 години
родител
ревизия
d34a97dd5f
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      app/Transformers/Post/CommentTransformer.php

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

@@ -50,6 +50,7 @@ class CommentTransformer extends TransformerAbstract
                     $replyUsername = $userReply['username'];
                 }
                 $reply[] = [
+                    'id' => $val->id,
                     'uid' => $val->uid,
                     'username' => $userComment['username'],
                     'avatar' => $userComment['avatar'],
@@ -61,6 +62,7 @@ class CommentTransformer extends TransformerAbstract
                     'like_count' => $replyLike['like_count'],
                 ];
                 $redisReply[] = [
+                    'id' => $val->id,
                     'uid' => $val->uid,
                     'username' => $userComment['username'],
                     'avatar' => $userComment['avatar'],