diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java index 930e080b..1be9e223 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java @@ -19,7 +19,6 @@ import com.red.circle.other.app.dto.cmd.room.RoomEntryCmd; import com.red.circle.other.domain.gateway.user.UserProfileGateway; import com.red.circle.other.domain.gateway.user.ability.UserRegionGateway; import com.red.circle.other.infra.database.cache.service.other.RoomManagerCacheService; -import com.red.circle.other.infra.database.cache.service.user.RegionRoomCacheService; import com.red.circle.other.infra.database.cache.service.user.UserAgoraTokenCacheService; import com.red.circle.other.infra.database.mongo.entity.live.RoomProfile; import com.red.circle.other.infra.database.mongo.entity.live.RoomProfileManager; @@ -82,7 +81,6 @@ public class RoomEnterCmdExe { private final TrtcClient trtcClient; private final UserAgoraTokenCacheService userAgoraTokenCacheService; private final TaskMqMessage taskMqMessage; - private final RegionRoomCacheService regionRoomCacheService; public EntryRoomResponseCO execute(RoomEntryCmd cmd) { //checkEntryUserId(cmd); @@ -126,11 +124,6 @@ public class RoomEnterCmdExe { log.error("进房间添加足迹异常:{}", e.getMessage()); } - //清空房间列表缓存 - String region = userRegionGateway.getRegionCode(cmd.requiredReqUserId()); - String key = cmd.requireReqSysOrigin() + region; - regionRoomCacheService.remove(key); - return new EntryRoomResponseCO() .setRoomProfile( new EntryRoomProfileCO()