wzq преди 5 години
родител
ревизия
5577c90df9
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      app/Repositories/Post/PostRepository.php

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

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