wzq 5 years ago
parent
commit
5577c90df9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Repositories/Post/PostRepository.php

+ 4 - 0
app/Repositories/Post/PostRepository.php

@@ -274,6 +274,8 @@ class PostRepository
                 'param' => [
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
+                    'post_id' => $post->id,
+                    'content' => subtext($request['content'], 20),
                 ]
             ]);
         }else{
@@ -283,6 +285,8 @@ class PostRepository
                 'param' => [
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
+                    'post_id' => $post->id,
+                    'content' => subtext($request['content'], 20),
                 ]
             ]);
         }