Kaynağa Gözat

更新回复

wzq 5 yıl önce
ebeveyn
işleme
51b229913d
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      app/Repositories/Post/PostRepository.php

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

@@ -434,6 +434,8 @@ class PostRepository
 
             if(!$comment->parent_id){
                 Redis::DEL('post_new_comment_'.$comment->post_id);
+            }else{
+                Redis::DEL('post_new_reply_'.$comment->id);
             }
             $virus = $this->behavior->where('behavior_identification', 'comment')->first();
             if ($virus) {
@@ -763,6 +765,8 @@ class PostRepository
 
             if(!$comment->parent_id){
                 Redis::DEL('post_new_comment_'.$comment->post_id);
+            }else{
+                Redis::DEL('post_new_reply_'.$comment->id);
             }
             return Response::create();