wzq 5 éve
szülő
commit
6f41404e6d
1 módosított fájl, 0 hozzáadás és 2 törlés
  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], '评论成功');