Commit 1ca5fbed authored by shiyu's avatar shiyu

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

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