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

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -301,7 +301,7 @@ class PostRepositories
             $comment = $this->postComment->create($data);
 
             if($comment->parent_id){
-                $this->postComment->where('parent_id', $comment->parent_id)->increment('reply_count');
+                $this->postComment->where('id', $comment->parent_id)->increment('reply_count');
             }
 
             DB::commit();