小游戏开房坑位显示异常的bug

This commit is contained in:
fengshuo
2022-03-28 19:00:18 +08:00
committed by chenguilong
parent 3ffeeff02b
commit 59d0e521ef
4 changed files with 13 additions and 7 deletions

View File

@@ -435,11 +435,15 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
} else { //
if ([self.roomUid isEqualToString:[NSString stringWithFormat:@"%ld", userInfo.uid]]) { //
if (roomInfo.roomId > 0) { // 使
[self.presenter openRoom:roomInfo.title type:roomInfo.type roomPwd:roomInfo.roomPwd roomDesc:roomInfo.roomDesc backPic:@"" mgId:self.mgId];
RoomType type = RoomType_Game;
if (self.mgId.longLongValue > 0) {
type = RoomType_MiniGame;
}
[self.presenter openRoom:roomInfo.title type:type roomPwd:roomInfo.roomPwd roomDesc:roomInfo.roomDesc backPic:@"" mgId:self.mgId];
} else { //
NSString* title = [NSString stringWithFormat:@"%@的房间", userInfo.nick];
RoomType type = RoomType_Game;
if (self.mgId.length > 0) {
if (self.mgId.longLongValue > 0) {
type = RoomType_MiniGame;
}
[self.presenter openRoom:title type:type roomPwd:@"" roomDesc:@"" backPic:@"" mgId:self.mgId];
@@ -454,9 +458,10 @@ UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
- (void)openRoomSuccess:(RoomInfoModel *)roomInfo {
self.roomInfo = roomInfo;
[self.roomHeaderView onRoomUpdate];
[self.activityContainerView onRoomUpdate];
[self.backContainerView onRoomUpdate];
[self changeStageViewOnRoomUpdate];
[self.roomHeaderView onRoomEntered];
[self.activityContainerView onRoomEntered];
[self.backContainerView onRoomEntered];
[self.littleGameView onRoomEntered];
[self.presenter enterNIMRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.roomId] user:self.userInfo];
}