From f573866463c8a8dd17989c17d050e5f67d7c1916 Mon Sep 17 00:00:00 2001 From: liyuhua <15626451870@163.com> Date: Thu, 28 Dec 2023 18:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=8C=85=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=AD=A4commit=E7=BD=AE=E9=A1=B6=202.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Main/Mine/View/XPMineViewController.m | 4 +++ .../View/XPRoomLittleGameContainerView.m | 25 +++++++++++++------ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/xplan-ios/Main/Mine/View/XPMineViewController.m b/xplan-ios/Main/Mine/View/XPMineViewController.m index 45fda056..7649c422 100644 --- a/xplan-ios/Main/Mine/View/XPMineViewController.m +++ b/xplan-ios/Main/Mine/View/XPMineViewController.m @@ -214,6 +214,10 @@ [XPRoomViewController openRoom:roomUid viewController:self]; } } else { + if(code == 10108){ + [self showRealNameAuthenticationTipsAlertView]; + return; + } [self showErrorToast:msg]; } } uid:roomUid intoUid:roomUid]; diff --git a/xplan-ios/Main/Room/View/LittleGame/View/XPRoomLittleGameContainerView.m b/xplan-ios/Main/Room/View/LittleGame/View/XPRoomLittleGameContainerView.m index cc956e81..9e7831ac 100644 --- a/xplan-ios/Main/Room/View/LittleGame/View/XPRoomLittleGameContainerView.m +++ b/xplan-ios/Main/Room/View/LittleGame/View/XPRoomLittleGameContainerView.m @@ -359,6 +359,7 @@ * @param dataJson {} */ -(void)onGetGameViewInfo:(id)handle dataJson:(NSString*)dataJson { + CGRect rect = [[UIScreen mainScreen] bounds]; CGFloat scale = [[UIScreen mainScreen] nativeScale]; @@ -373,7 +374,7 @@ CGFloat height = rect.size.height * scale; NSDictionary *rectDict = [NSDictionary dictionaryWithObjectsAndKeys:@(top), @"top", @(0), @"left", @(bottom), @"bottom", @(0), @"right", nil]; NSDictionary *viewDict = [NSDictionary dictionaryWithObjectsAndKeys:@(width), @"width", @(height), @"height", nil]; - NSDictionary *dataDict = [NSDictionary dictionaryWithObjectsAndKeys:@(0), @"ret_code", @"return form APP onGetGameViewInfo", @"ret_msg", viewDict, @"view_size", rectDict, @"view_game_rect", nil]; + NSDictionary *dataDict = [NSDictionary dictionaryWithObjectsAndKeys:@(0), @"ret_code", @"return form APP onGetGameViewInfo", @"ret_msg", viewDict, @"view_size", rectDict, @"view_game_rect", nil]; /// 回调 [handle success:[SudCommon dictionaryToJson:dataDict]]; } @@ -387,13 +388,23 @@ NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; dict[@"ret_code"] = @(0); dict[@"ret_msg"] = @"return form APP onGetGameCfg"; + if(self.currentmgId == 1704460412809043970){ + dict[@"ui"] = @{ + @"join_btn" : @{@"custom": @(YES), @"hide": @(NO)},//加入游戏 + @"start_btn" : @{@"custom": @(YES), @"hide": @(NO)},//开始游戏 + @"lobby_players" : @{@"custom": @(YES), @"hide": @(NO)},//游戏中坑位点击 + @"level" : @{@"custom": @(YES), @"hide" : @(YES),},////段位信息 + @"game_bg" : @{@"hide":@(YES)}///背景 + }; + }else{ + dict[@"ui"] = @{ + @"join_btn" : @{@"custom": @(YES), @"hide": @(NO)},//加入游戏 + @"start_btn" : @{@"custom": @(YES), @"hide": @(NO)},//开始游戏 + @"lobby_players" : @{@"custom": @(YES), @"hide": @(NO)},//游戏中坑位点击 + @"level" : @{@"custom": @(YES), @"hide" : @(YES),},////段位信息 + }; + } - dict[@"ui"] = @{ - @"join_btn" : @{@"custom": @(YES), @"hide": @(NO)},//加入游戏 - @"start_btn" : @{@"custom": @(YES), @"hide": @(NO)},//开始游戏 - @"lobby_players" : @{@"custom": @(YES), @"hide": @(NO)},//游戏中坑位点击 - @"level" : @{@"custom": @(YES), @"hide" : @(YES)},//段位信息 - }; NSString *dataJsonRet = @""; NSData *dataJsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil]; if (dataJsonData != nil) {