|
@@ -45,6 +45,7 @@ class CalcPostWeight extends Command
|
|
$this->line('开始计算权重');
|
|
$this->line('开始计算权重');
|
|
$key = "community_calc_post_score";
|
|
$key = "community_calc_post_score";
|
|
$postIds = Redis::smembers($key);
|
|
$postIds = Redis::smembers($key);
|
|
|
|
+ Log::debug('权重帖子ID:'.json_encode($postIds));
|
|
foreach ($postIds as $postId) {
|
|
foreach ($postIds as $postId) {
|
|
$postInfo = PostData::where("post_id", $postId)->first();
|
|
$postInfo = PostData::where("post_id", $postId)->first();
|
|
$temp = $postInfo['pv'] +
|
|
$temp = $postInfo['pv'] +
|