|
@@ -179,6 +179,7 @@ class PostRepository
|
|
Redis::zadd('post_trigger_type', 0, $post->id);
|
|
Redis::zadd('post_trigger_type', 0, $post->id);
|
|
foreach ($topicIdsArray as $id) {
|
|
foreach ($topicIdsArray as $id) {
|
|
Redis::zincrby('topic.user_uid' . $request['uid'], 1, $id);
|
|
Redis::zincrby('topic.user_uid' . $request['uid'], 1, $id);
|
|
|
|
+ Redis::zincrby('topic.just_use_count', 1, $id);
|
|
}
|
|
}
|
|
|
|
|
|
$virus = $this->behavior->where('behavior_identification', 'publish')->first();
|
|
$virus = $this->behavior->where('behavior_identification', 'publish')->first();
|
|
@@ -1125,6 +1126,10 @@ class PostRepository
|
|
|
|
|
|
Redis::HSET('post_info_'.$request['id'], 'topic_ids', $topicIds);
|
|
Redis::HSET('post_info_'.$request['id'], 'topic_ids', $topicIds);
|
|
|
|
|
|
|
|
+ foreach ($topicIdsArray as $id) {
|
|
|
|
+ Redis::zincrby('topic.just_use_count', 1, $id);
|
|
|
|
+ }
|
|
|
|
+
|
|
return Response::create();
|
|
return Response::create();
|
|
|
|
|
|
} catch (QueryException $exception) {
|
|
} catch (QueryException $exception) {
|