xielin %!s(int64=5) %!d(string=hai) anos
pai
achega
d9febfb7c4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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').' 创建帖子结束');
     }
 }