xielin 5 years ago
parent
commit
f7f45506a2
1 changed files with 1 additions and 0 deletions
  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);
         }
     }