修复后台个播房切普通房闪退问题修复bug

This commit is contained in:
liyuhua
2024-06-06 18:04:34 +08:00
parent acc9d5fc8d
commit 0c25dea2a5
5 changed files with 14 additions and 5 deletions

View File

@@ -126,19 +126,18 @@
-(void)ms_didSelectLittleGameItemAtIndexPath:(LittleGameInfoModel *)model { -(void)ms_didSelectLittleGameItemAtIndexPath:(LittleGameInfoModel *)model {
if (self.hostDelegate.isManagerOrOwner) { if (self.hostDelegate.isManagerOrOwner) {
@kWeakify(self); @kWeakify(self);
[TTPopup alertWithMessage:@"确认开启游戏?" confirmHandler:^{ [TTPopup alertWithMessage:YMLocalizedString(@"MSRoomMenuGameVC0") confirmHandler:^{
@kStrongify(self); @kStrongify(self);
[self startLittleGameWith:model]; [self startLittleGameWith:model];
} cancelHandler:^{}]; } cancelHandler:^{}];
} else { } else {
[XNDJTDDLoadingTool showErrorWithMessage:@"无权发起该游戏,请联系房主或管理员~"]; [XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"MSRoomMenuGameVC1")];
} }
} }
- (void)startLittleGameWith:(LittleGameInfoModel *)model { - (void)startLittleGameWith:(LittleGameInfoModel *)model {
RoomInfoModel * roomInfo = self.hostDelegate.getRoomInfo; RoomInfoModel * roomInfo = self.hostDelegate.getRoomInfo;
NSMutableDictionary * params = [NSMutableDictionary dictionary]; NSMutableDictionary * params = [NSMutableDictionary dictionary];
NSString * uid = [AccountInfoStorage instance].getUid;
NSString * ticket = [AccountInfoStorage instance].getTicket; NSString * ticket = [AccountInfoStorage instance].getTicket;
[params setObject:ticket forKey:@"ticket"]; [params setObject:ticket forKey:@"ticket"];
[params setObject:@(roomInfo.uid).stringValue forKey:@"uid"]; [params setObject:@(roomInfo.uid).stringValue forKey:@"uid"];

View File

@@ -3832,3 +3832,6 @@ ineHeadView12" = "الحمل";
"MSRoomGameVC1"="المحفظة"; "MSRoomGameVC1"="المحفظة";
//XPMineAccountView //XPMineAccountView
"XPMineAccountView1"="أدخل بسرعة لإعادة الشحن"; "XPMineAccountView1"="أدخل بسرعة لإعادة الشحن";
//MSRoomMenuGameVC
"MSRoomMenuGameVC0"="تأكيد لبدء اللعبة؟";
"MSRoomMenuGameVC1"="ليس لديك إذن بتشغيل هذه اللعبة، يرجى التواصل بصاحب أومشرف الغرفة ~";

View File

@@ -3633,3 +3633,6 @@
"MSRoomGameVC1"="Wallet"; "MSRoomGameVC1"="Wallet";
//XPMineAccountView //XPMineAccountView
"XPMineAccountView1"="Quick access to recharge"; "XPMineAccountView1"="Quick access to recharge";
//MSRoomMenuGameVC
"MSRoomMenuGameVC0"="Confirm to start the game?";
"MSRoomMenuGameVC1"="You do not have the right to start this game, please contact the room owner or administrator~";

View File

@@ -3295,5 +3295,6 @@
//XPMineAccountView //XPMineAccountView
"XPMineAccountView1"="快速进入充值"; "XPMineAccountView1"="快速进入充值";
//MSRoomMenuGameVC
"MSRoomMenuGameVC0"="确认开启游戏?";
"MSRoomMenuGameVC1"="无权发起该游戏,请联系房主或管理员~";

View File

@@ -3285,3 +3285,6 @@
//XPMineAccountView //XPMineAccountView
"XPMineAccountView1"="快速進入充值"; "XPMineAccountView1"="快速進入充值";
//MSRoomMenuGameVC
"MSRoomMenuGameVC0"="確認開啟遊戲?";
"MSRoomMenuGameVC1"="無權發起該遊戲,請聯系房主或管理員~";