瀏覽代碼

修改评论

wzq 5 年之前
父節點
當前提交
b96e40f349
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      app/Repositories/Post/PostRepository.php

+ 0 - 2
app/Repositories/Post/PostRepository.php

@@ -400,8 +400,6 @@ class PostRepository
         DB::beginTransaction();
         try {
             $comment = $this->postComment->create($data);
-            $post->data->comment_count += 1;
-            $post->data->save();
 
             DB::commit();