Commit 88c48b64 authored by shiyu's avatar shiyu

校验重复关注

parent e4952686
...@@ -166,7 +166,7 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService { ...@@ -166,7 +166,7 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
EntityMapper.copyAttribute(f, followFansRecordVo); EntityMapper.copyAttribute(f, followFansRecordVo);
followFansRecordVo.setFollowerName(cacheUtil.getAppletUserNameById(f.getFollowerId())); followFansRecordVo.setFollowerName(cacheUtil.getAppletUserNameById(f.getFollowerId()));
followFansRecordVo.setFollowerIcon(cacheUtil.getAppletUsers(f.getFollowerId()).getAvatar()); followFansRecordVo.setFollowerIcon(cacheUtil.getAppletUsers(f.getFollowerId()).getAvatar());
followFansRecordVo.setFansProfile(cacheUtil.getAppletUsers(f.getFollowerId()).getProfile()); followFansRecordVo.setFollowerProfile(cacheUtil.getAppletUsers(f.getFollowerId()).getProfile());
if (fansIdList.contains(f.getFollowerId().longValue())) { if (fansIdList.contains(f.getFollowerId().longValue())) {
followFansRecordVo.setRelation("互相关注"); followFansRecordVo.setRelation("互相关注");
followFansRecordVo.setRelationCode(FollowFansEnum.RelationEnum.BOTH_FOLLOWED.getCode()); followFansRecordVo.setRelationCode(FollowFansEnum.RelationEnum.BOTH_FOLLOWED.getCode());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment