|
@@ -43,6 +43,13 @@ class MemberFollowTopicRepository {
|
|
|
if($res){
|
|
|
//更改关注状态
|
|
|
|
|
|
+ //用户话题集合
|
|
|
+ $key = 'topic.user_uid'.$token['user']->uid;
|
|
|
+ foreach($data as $value){
|
|
|
+ if(!Redis::zscore($key, $value['id'])){
|
|
|
+ Redis::zincrby($key, 0, $value['id']);
|
|
|
+ }
|
|
|
+ }
|
|
|
return jsonSuccess();
|
|
|
}else{
|
|
|
return jsonError('关注失败');
|