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' => [
                     '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),
                 ]
             ]);
         }