升级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

@@ -39,7 +39,7 @@ target 'YuMi' do
pod 'IQKeyboardManager' pod 'IQKeyboardManager'
pod 'TZImagePickerController' pod 'TZImagePickerController'
#TRTC #TRTC
pod 'TXLiteAVSDK_TRTC', '~> 11.4.0.14530' pod 'TXLiteAVSDK_TRTC', '~> 11.4.14530'
#vap礼物动画 #vap礼物动画
pod 'QGVAPlayer' pod 'QGVAPlayer'
#上传音乐 #上传音乐

View File

@@ -50,6 +50,8 @@ isPhoneXSeries = [[UIApplication sharedApplication] delegate].window.safeAreaIns
#define PI_App_Version @"2.2.1" #define PI_App_Version @"2.2.1"
#define PI_App_Source @"appstore"
//#define PI_App_Source @"pi_tf"
#ifdef DEBUG #ifdef DEBUG
#define API_HOST_URL [NSString stringWithFormat:@"%@%@",@"http://beta.api",@".pekolive.com"] #define API_HOST_URL [NSString stringWithFormat:@"%@%@",@"http://beta.api",@".pekolive.com"]

View File

@@ -91,6 +91,9 @@
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
#ifdef DEBUG
if([ClientConfig shareConfig].canOpen){ if([ClientConfig shareConfig].canOpen){
[self showLoading]; [self showLoading];
[Api requestMineChannel:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) { [Api requestMineChannel:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
@@ -107,6 +110,34 @@
return; return;
} }
[self initWebView:YES]; [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
} }

View File

@@ -121,7 +121,7 @@ static NSString *_from = nil;
if (isEnterprise == NO) { if (isEnterprise == NO) {
_from = @"piko_Enterprise"; // _from = @"piko_Enterprise"; //
}else { }else {
_from = @"appstore"; // App Store _from = PI_App_Source; // App Store
} }
} }
} }