xielin 5 年之前
父節點
當前提交
f7f45506a2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Console/Commands/CalcPostWeight.php

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

@@ -60,6 +60,7 @@ class CalcPostWeight extends Command
             $score = log10($temp) + $fresh / 86400;
             $postInfo->weight = $score;
             $postInfo->save();
+            Redis::srem($key,$postId);
             $this->line(date("Y-m-d H:i:s") . "设置帖子" . $postInfo->post_id . "的权重分为:" . $score);
         }
     }