wzq vor 5 Jahren
Ursprung
Commit
6f41404e6d
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  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], '评论成功');