升级trtc
This commit is contained in:
2
Podfile
2
Podfile
@@ -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'
|
||||||
#上传音乐
|
#上传音乐
|
||||||
|
@@ -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"]
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -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包
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user