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) {