wzq 5 anni fa
parent
commit
6f41404e6d
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  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], '评论成功');