wzq hace 5 años
padre
commit
5577c90df9
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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),
                 ]
             ]);
         }