Commit 8d7b2d56 authored by 吴泽佳's avatar 吴泽佳

个人主页

parent f3adef30
...@@ -40,7 +40,7 @@ public class HomePageController { ...@@ -40,7 +40,7 @@ public class HomePageController {
@ApiOperation(value = "个人中心 查询") @ApiOperation(value = "个人中心 查询")
@GetMapping(value = "/queryUserInfoNew") @GetMapping(value = "/queryUserInfoNew")
@AuthLogin @AuthLogin
public CommonResp<UserInfoNew> queryUsersListNew(@RequestParam("userId") String userId){ public CommonResp<UserInfoNew> queryUsersListNew(@RequestParam(value = "userId", required = false) String userId){
String userIdMyself = userHolder.getUserId(); String userIdMyself = userHolder.getUserId();
return CommonResp.success(homePageManager.queryUsersListNew(userIdMyself,userId)); return CommonResp.success(homePageManager.queryUsersListNew(userIdMyself,userId));
} }
......
...@@ -76,7 +76,7 @@ public class HomePageManager { ...@@ -76,7 +76,7 @@ public class HomePageManager {
if (queryUsersListNew.isNotSuccess()) new BizException("内部接口调用失败"); if (queryUsersListNew.isNotSuccess()) new BizException("内部接口调用失败");
UserInfoNew userInfoNew = queryUsersListNew.getData(); UserInfoNew userInfoNew = queryUsersListNew.getData();
// 关注 按钮的显示逻辑 // 关注 按钮的显示逻辑
if (StringUtils.isNotBlank(userId)) { //查询别人的个人主页 if (StringUtils.isNotBlank(userId) || !StringUtils.equals(userIdMyself, userId)) { //查询别人的个人主页
//是否已关注 //是否已关注
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()){
......
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