소스 검색

修改评论

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

+ 0 - 2
app/Repositories/PostRepositories.php

@@ -256,8 +256,6 @@ class PostRepositories
         DB::beginTransaction();
         try{
             $comment = $this->postComment->create($data);
-            $post->data->comment_count += 1;
-            $post->data->save();
 
             DB::commit();
             return jsonSuccess(['id' => $comment->id], '评论成功');