xielin 5 年之前
父节点
当前提交
dec8003049
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/PostCreate.php

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

@@ -52,7 +52,7 @@ class PostCreate extends Command
         foreach ($posts as $post) {
             $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));
+            Redis::srem($key,$post);
         }
 
         $this->line(date('Y-m-d H:i:s').' 创建帖子结束');