소스 검색

评论消息

wzq 5 년 전
부모
커밋
b965202b5d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/Repositories/Post/PostRepository.php

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

@@ -286,6 +286,7 @@ class PostRepository
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                 ]
             ]);
@@ -297,6 +298,7 @@ class PostRepository
                     'uid' => $userInfo['uid'],
                     'username' => $userInfo['username'],
                     'post_id' => $post->id,
+                    'cover' => $post->img,
                     'content' => subtext($request['content'], 20),
                 ]
             ]);