xielin 5 rokov pred
rodič
commit
d9febfb7c4
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      app/Console/Commands/PostCreate.php

+ 1 - 0
app/Console/Commands/PostCreate.php

@@ -53,6 +53,7 @@ class PostCreate extends Command
             $row = $this->postRepositories->createPost(json_decode($post,true));
             Log::debug(date("Y-m-d H:i:s") . "创建帖子:" . json_encode($row));
         }
+        Redis::srem($key,json_encode($post));
         $this->line(date('Y-m-d H:i:s').' 创建帖子结束');
     }
 }