Commit 1ca5fbed authored by shiyu's avatar shiyu

调用玩物得志社区接口获取用户签名

parent d7962f65
...@@ -795,7 +795,7 @@ public class ItemServiceImpl implements ItemService { ...@@ -795,7 +795,7 @@ public class ItemServiceImpl implements ItemService {
} }
//获取用户签名 //获取用户签名
try { try {
CloudServerResponse<CommunityUserAttributeDO> response = communityAttributeReadService.getCommunityUserAttributeByUserId(dto.getUserId()); CloudServerResponse<CommunityUserAttributeDO> response = communityAttributeReadService.getCommunityUserAttributeByUserId(itemResponseVo.getItemUserId());
if (response.isSuccess()) { if (response.isSuccess()) {
itemResponseVo.setProfile(response.getResult().getSignature()); itemResponseVo.setProfile(response.getResult().getSignature());
} }
......
...@@ -580,6 +580,17 @@ public class UserServiceImpl implements UserService { ...@@ -580,6 +580,17 @@ public class UserServiceImpl implements UserService {
try { try {
UserInfo userInfo = new UserInfo(); UserInfo userInfo = new UserInfo();
userInfo.setUserId(dto.getUserId()); userInfo.setUserId(dto.getUserId());
//获取用户签名
try {
CloudServerResponse<CommunityUserAttributeDO> response = communityAttributeReadService.getCommunityUserAttributeByUserId(dto.getUserId());
if (response.isSuccess()) {
userInfo.setProfile(response.getResult().getSignature());
}
} catch (Exception e) {
logger.error(">>>>>>>>> 调用社区用户查询接口获取用户签名出错:{}", e);
}
itemCommonService.getPageViews(userInfo); itemCommonService.getPageViews(userInfo);
logger.info("【请求结束】查询关注粉丝浏览量"); logger.info("【请求结束】查询关注粉丝浏览量");
return Result.success(userInfo); return Result.success(userInfo);
......
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