|
@@ -196,6 +196,7 @@ class PostRepositories
|
|
|
Redis::zadd('post_trigger_type', $isValid, $post->id);
|
|
|
foreach($topicIds as $id){
|
|
|
Redis::zincrby('topic.user_uid'.$userInfo['uid'], 1, $id);
|
|
|
+ Redis::zincrby('topic.just_use_count', 1, $id);
|
|
|
}
|
|
|
Redis::HSET('post_info_'.$post->id,
|
|
|
'id', $post->id,
|
|
@@ -712,7 +713,7 @@ class PostRepositories
|
|
|
'id' => $topic->id,
|
|
|
'name' => $topic->name,
|
|
|
'img' => $topic->img,
|
|
|
- 'follow_count' => getNumber($topic->follow->count() + $topic->base_count),
|
|
|
+ 'follow_count' => getNumber($topic->use_count + $topic->base_count),
|
|
|
];
|
|
|
}
|
|
|
return $data;
|