升级trtc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user