TrtcKey更换
This commit is contained in:
1
Podfile
1
Podfile
@@ -3,7 +3,6 @@
|
||||
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
|
||||
target 'YuMi' do
|
||||
use_frameworks!
|
||||
|
||||
pod 'Adjust', '~> 4.31.0'
|
||||
# 滑动标签栏
|
||||
pod 'JXCategoryView'
|
||||
|
@@ -63,7 +63,21 @@
|
||||
///开始下载
|
||||
[[XPRoomFaceTool shareFaceTool] downFaceData];
|
||||
}
|
||||
|
||||
NSString *trtcAppId = [NSString stringWithFormat:@"%@",initData[@"trtcAppId"]];
|
||||
NSString *curTtcKey = [[NSUserDefaults standardUserDefaults]valueForKey:@"kTrtcAppId"];
|
||||
if(curTtcKey == nil){
|
||||
if(trtcAppId != nil){
|
||||
[[NSUserDefaults standardUserDefaults]setValue:trtcAppId forKey:@"kTrtcAppId"];
|
||||
[[NSUserDefaults standardUserDefaults]synchronize];
|
||||
}
|
||||
}else{
|
||||
if(![trtcAppId isEqualToString:curTtcKey]){
|
||||
if(trtcAppId != nil){
|
||||
[[NSUserDefaults standardUserDefaults]setValue:trtcAppId forKey:@"kTrtcAppId"];
|
||||
[[NSUserDefaults standardUserDefaults]synchronize];
|
||||
}
|
||||
}
|
||||
}
|
||||
//是否展示公屏
|
||||
NSString *serverVer = initData[@"appStoreAuditNoticeVersion"];
|
||||
NSString *shortVer = [YYUtility appVersion];
|
||||
|
@@ -35,7 +35,7 @@
|
||||
[self.numView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.leading.trailing.equalTo(self).inset(kGetScaleWidth(5));
|
||||
make.bottom.equalTo(self.titleView.mas_top).mas_offset(-kGetScaleWidth(2));
|
||||
make.top.mas_equalTo(kGetScaleWidth(0));
|
||||
make.top.mas_lessThanOrEqualTo(kGetScaleWidth(28));
|
||||
}];
|
||||
}
|
||||
- (void)setNum:(NSString *)num{
|
||||
|
@@ -40,7 +40,12 @@
|
||||
[self.engine enableAudioVolumeEvaluation:900];
|
||||
TRTCParams *params = [[TRTCParams alloc] init];
|
||||
UInt32 appId;
|
||||
NSString *curTtcKey = [[NSUserDefaults standardUserDefaults]valueForKey:@"kTrtcAppId"];
|
||||
if(curTtcKey != nil && curTtcKey.length > 0){
|
||||
sscanf([curTtcKey UTF8String], "%u", &appId);
|
||||
}else{
|
||||
sscanf([KeyWithType(KeyType_TRTC) UTF8String], "%u", &appId);
|
||||
}
|
||||
params.sdkAppId = appId;
|
||||
UInt32 roomId;
|
||||
sscanf([channelId UTF8String], "%u", &roomId);
|
||||
|
Reference in New Issue
Block a user