Commit 783f66e4 authored by 王亚雷's avatar 王亚雷

Merge remote-tracking branch 'origin/v2.2.7' into dev

parents f7dc5ac6 c59d6916
...@@ -95,6 +95,7 @@ public class HomePageManager { ...@@ -95,6 +95,7 @@ public class HomePageManager {
throw new BizException("内部接口调用失败"); throw new BizException("内部接口调用失败");
UserInfoResp userInfoNew = queryUsersListNew.getData(); UserInfoResp userInfoNew = queryUsersListNew.getData();
userInfoNew.setShowFollowStatus(ShowFollowStatusEnum.NOT_FOLLOWED.getCode());
if (StringUtils.isNotBlank(userIdMyself)) { if (StringUtils.isNotBlank(userIdMyself)) {
if (!StringUtils.equals(userIdMyself, userId)) { if (!StringUtils.equals(userIdMyself, userId)) {
// 查询别人的个人主页 // 查询别人的个人主页
...@@ -102,8 +103,6 @@ public class HomePageManager { ...@@ -102,8 +103,6 @@ public class HomePageManager {
FollowRelEntity followRelEntity = followRelService.queryRecord(userId, userIdMyself); FollowRelEntity followRelEntity = followRelService.queryRecord(userId, userIdMyself);
if (ObjectUtils.allNotNull(followRelEntity) && BizStatus.DeleteTag.tag_init == followRelEntity.getDeleteTag()) { if (ObjectUtils.allNotNull(followRelEntity) && BizStatus.DeleteTag.tag_init == followRelEntity.getDeleteTag()) {
userInfoNew.setShowFollowStatus(ShowFollowStatusEnum.FOLLOWED.getCode()); // 已关注 userInfoNew.setShowFollowStatus(ShowFollowStatusEnum.FOLLOWED.getCode()); // 已关注
} else {
userInfoNew.setShowFollowStatus(ShowFollowStatusEnum.NOT_FOLLOWED.getCode()); // 未关注
} }
if (userInfoNew.getWorkshopStatus() == 2) userInfoNew.setWorkshopStatus(1); //别人的主页不需要展示 工作室 if (userInfoNew.getWorkshopStatus() == 2) userInfoNew.setWorkshopStatus(1); //别人的主页不需要展示 工作室
} }
......
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