小游戏开房坑位显示异常的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

@@ -214,7 +214,6 @@
[self showErrorToast:msg];
}
} uid:roomUid intoUid:roomUid];
}
break;
case XPMineItemType_My_Dressup:

View File

@@ -126,6 +126,8 @@
mgId = @"0";
}
[Api openRoom:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
RoomInfoModel * infoModel = [RoomInfoModel modelWithJSON:data.data];
[[self getView] openRoomSuccess:infoModel];

View File

@@ -194,6 +194,7 @@
}
- (void)createRoomButtonAction:(UIButton *)sender {
[TTPopup dismiss];
if (self.normalRoomButton.selected) {
[XPRoomViewController openRoom:[AccountInfoStorage instance].getUid viewController:self.currentVC];
}else {
@@ -202,7 +203,6 @@
[XPRoomViewController openRoom:[AccountInfoStorage instance].getUid mgId:self.selectGameInfo.mgId viewController:self.currentVC];
} else {
[XCHUDTool showErrorWithMessage:@"请求房间信息失败请重试!"];
[TTPopup dismiss];
}
}
}

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];
}