进入房间不清空缓存
This commit is contained in:
parent
0968e2711a
commit
3972f2bfbe
@ -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.UserProfileGateway;
|
||||||
import com.red.circle.other.domain.gateway.user.ability.UserRegionGateway;
|
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.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.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.RoomProfile;
|
||||||
import com.red.circle.other.infra.database.mongo.entity.live.RoomProfileManager;
|
import com.red.circle.other.infra.database.mongo.entity.live.RoomProfileManager;
|
||||||
@ -82,7 +81,6 @@ public class RoomEnterCmdExe {
|
|||||||
private final TrtcClient trtcClient;
|
private final TrtcClient trtcClient;
|
||||||
private final UserAgoraTokenCacheService userAgoraTokenCacheService;
|
private final UserAgoraTokenCacheService userAgoraTokenCacheService;
|
||||||
private final TaskMqMessage taskMqMessage;
|
private final TaskMqMessage taskMqMessage;
|
||||||
private final RegionRoomCacheService regionRoomCacheService;
|
|
||||||
|
|
||||||
public EntryRoomResponseCO execute(RoomEntryCmd cmd) {
|
public EntryRoomResponseCO execute(RoomEntryCmd cmd) {
|
||||||
//checkEntryUserId(cmd);
|
//checkEntryUserId(cmd);
|
||||||
@ -126,11 +124,6 @@ public class RoomEnterCmdExe {
|
|||||||
log.error("进房间添加足迹异常:{}", e.getMessage());
|
log.error("进房间添加足迹异常:{}", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
//清空房间列表缓存
|
|
||||||
String region = userRegionGateway.getRegionCode(cmd.requiredReqUserId());
|
|
||||||
String key = cmd.requireReqSysOrigin() + region;
|
|
||||||
regionRoomCacheService.remove(key);
|
|
||||||
|
|
||||||
return new EntryRoomResponseCO()
|
return new EntryRoomResponseCO()
|
||||||
.setRoomProfile(
|
.setRoomProfile(
|
||||||
new EntryRoomProfileCO()
|
new EntryRoomProfileCO()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user