升级trtc

This commit is contained in:
liyuhua
2023-11-03 11:19:14 +08:00
parent 47eab96f43
commit 95a8cfc86d
4 changed files with 35 additions and 2 deletions

View File

@@ -91,6 +91,9 @@
- (void)viewDidLoad {
[super viewDidLoad];
#ifdef DEBUG
if([ClientConfig shareConfig].canOpen){
[self showLoading];
[Api requestMineChannel:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
@@ -107,6 +110,34 @@
return;
}
[self initWebView:YES];
#else
if(isEnterprise == YES){
if([ClientConfig shareConfig].canOpen){
[self showLoading];
[Api requestMineChannel:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
[self hideHUD];
if(code == 200){
if(data.data[@"isNative"] != nil){
BOOL is = [data.data[@"isNative"] boolValue];
[self initWebView:is];
}
return;
}
[self initWebView:YES];
}];
return;
}
[self initWebView:YES];
}else{
[self initWebView:NO];
}
#endif
}