|
@@ -198,6 +198,29 @@ class PostRepositories
|
|
|
foreach($topicIds as $id){
|
|
|
Redis::zincrby('topic.user_uid'.$userInfo['uid'], 1, $id);
|
|
|
}
|
|
|
+ Redis::HSET('post_info_'.$post->id,
|
|
|
+ 'id', $post->id,
|
|
|
+ 'uid', $post->uid,
|
|
|
+ 'type', $post->type,
|
|
|
+ 'img', $post->img,
|
|
|
+ 'imgs', json_encode($imgs),
|
|
|
+ 'video', $post->video,
|
|
|
+ 'topic_ids', $post->topic_ids,
|
|
|
+ 'title', $post->title,
|
|
|
+ 'content', $post->content,
|
|
|
+ 'location', $post->location,
|
|
|
+ 'pv', $postData->pv,
|
|
|
+ 'dislike_count', $postData->dislike_count,
|
|
|
+ 'praise_count', $postData->praise_count,
|
|
|
+ 'share_count', $postData->share_count,
|
|
|
+ 'comment_count', $postData->comment_count,
|
|
|
+ 'collect_count', $postData->collect_count,
|
|
|
+ 'available_bean', $postData->available_bean,
|
|
|
+ 'will_collect_bean', $postData->will_collect_bean,
|
|
|
+ 'create_bean', $postData->create_bean,
|
|
|
+ 'collect_bean', $postData->collect_bean,
|
|
|
+ 'weight', $postData->weight);
|
|
|
+
|
|
|
return jsonSuccess([
|
|
|
'post_id' => $post->id,
|
|
|
'h5url' => config('customer.share_post_h5url')."?post_id={$post->id}&invite_code={$userInfo['invite_code']}",
|