企业包版本修改 此commit置顶 2.0.0

This commit is contained in:
liyuhua
2023-12-28 18:51:33 +08:00
parent 14a00b6485
commit f573866463
2 changed files with 22 additions and 7 deletions

View File

@@ -214,6 +214,10 @@
[XPRoomViewController openRoom:roomUid viewController:self];
}
} else {
if(code == 10108){
[self showRealNameAuthenticationTipsAlertView];
return;
}
[self showErrorToast:msg];
}
} uid:roomUid intoUid:roomUid];

View File

@@ -359,6 +359,7 @@
* @param dataJson {}
*/
-(void)onGetGameViewInfo:(id<ISudFSMStateHandle>)handle dataJson:(NSString*)dataJson {
CGRect rect = [[UIScreen mainScreen] bounds];
CGFloat scale = [[UIScreen mainScreen] nativeScale];
@@ -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)},//
@"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),},////
};
}
NSString *dataJsonRet = @"";
NSData *dataJsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil];
if (dataJsonData != nil) {