diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileCardQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileCardQryExe.java index 90781c5f..dac1cc5b 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileCardQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileCardQryExe.java @@ -12,6 +12,7 @@ import com.red.circle.other.domain.gateway.user.ability.UserRegionGateway; import com.red.circle.other.domain.gateway.user.ability.UserSVipGateway; import com.red.circle.other.domain.model.user.UserProfile; import com.red.circle.other.infra.common.game.GameKtvCommon; +import com.red.circle.other.infra.database.cache.service.cp.CpRelationshipCacheService; import com.red.circle.other.infra.database.mongo.entity.live.RoomProfileManager; import com.red.circle.other.infra.database.mongo.entity.team.team.TeamMember; import com.red.circle.other.infra.database.mongo.service.live.RoomProfileManagerService; @@ -48,6 +49,7 @@ public class UserProfileCardQryExe { private final RedisService redisService; private final RoomProfileManagerService roomProfileManagerService; private final UserRegionGateway userRegionGateway; + private final CpRelationshipCacheService cpRelationshipCacheService; public UserProfileCardCO execute(UserCardQryCmd cmd) { @@ -89,6 +91,9 @@ public class UserProfileCardQryExe { String isUpdateCountry = redisService.getString("IS_UPDATE_COUNTRY:" + cmd.requiredReqUserId()); result.getUserProfile().setIsUpdateCountry(StringUtils.isNotBlank(isUpdateCountry) ? isUpdateCountry : "0"); + // 填充用户CP信息 + userProfileDTO.setCpList(cpRelationshipCacheService.getUserCpList(userProfile.getId())); + return result; }