|
@@ -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);
|
|
|
}
|
|
|
}
|