wzq hace 5 años
padre
commit
6f41404e6d
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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], '评论成功');