修复bug
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#import "XPWebViewController.h"
|
||||
#import "XPRoomViewController.h"
|
||||
#import "XCCurrentVCStackManager.h"
|
||||
#import <RPSDK/RPSDK.h>
|
||||
|
||||
UIKIT_EXTERN NSString * kYinyouPrivateKey;
|
||||
UIKIT_EXTERN NSString * adImageName;
|
||||
@@ -40,6 +41,13 @@ UIKIT_EXTERN NSString * adImageName;
|
||||
[self initEmojiData];
|
||||
[self configBugly];
|
||||
[self configQIYUSDK];
|
||||
[self configCloudShield];
|
||||
}
|
||||
- (void)configCloudShield {
|
||||
[RPSDK setup];
|
||||
#if !TARGET_OS_SIMULATOR
|
||||
// [RPSDK initialize:RPSDKEnvOnline]; //必须为RPSDKEnvOnline
|
||||
#endif
|
||||
}
|
||||
|
||||
- (void)configShareSDK {
|
||||
|
@@ -96,7 +96,7 @@
|
||||
}];
|
||||
|
||||
[self.incomeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(30);
|
||||
make.height.mas_equalTo(60);
|
||||
}];
|
||||
|
||||
[self.arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -112,7 +112,7 @@
|
||||
self.avatarImageView.imageUrl = _userInfo.avatar;
|
||||
self.nickLabel.text = _userInfo.nick;
|
||||
self.idLabel.text = [NSString stringWithFormat:@"ID:%@", _userInfo.erbanNo];
|
||||
self.incomeLabel.text = [NSString getDealNumwithstring:_userInfo.totalGoldNum];
|
||||
self.incomeLabel.text = _userInfo.totalGoldNum;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,6 +184,7 @@
|
||||
_incomeLabel = [[UILabel alloc] init];
|
||||
_incomeLabel.font = [UIFont boldSystemFontOfSize:14];
|
||||
_incomeLabel.textColor = [ThemeColor mainTextColor];
|
||||
_incomeLabel.numberOfLines = 2;
|
||||
}
|
||||
return _incomeLabel;
|
||||
}
|
||||
|
@@ -81,7 +81,7 @@
|
||||
|
||||
[self.singleRoomIncomeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.mas_equalTo((KScreenWidth - 52 - 45 - 90 - 10 * 4)/ 2);
|
||||
make.height.mas_equalTo(30);
|
||||
make.height.mas_equalTo(60);
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -92,8 +92,8 @@
|
||||
self.avatarImageView.imageUrl = _userInfo.avatar;
|
||||
self.nickLabel.text = _userInfo.nick;
|
||||
self.idLabel.text = [NSString stringWithFormat:@"ID:%@", _userInfo.erbanNo];
|
||||
self.singleRoomIncomeLabel.text = [NSString stringWithFormat:@"+%@", [NSString getDealNumwithstring: _userInfo.anchorDiamondNum]];
|
||||
self.roomIncomeLabel.text = [NSString stringWithFormat:@"+%@", [NSString getDealNumwithstring:_userInfo.roomDiamondNum]];
|
||||
self.singleRoomIncomeLabel.text = [NSString stringWithFormat:@"+%@", _userInfo.anchorDiamondNum];
|
||||
self.roomIncomeLabel.text = [NSString stringWithFormat:@"+%@", _userInfo.roomDiamondNum];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,6 +170,7 @@
|
||||
_singleRoomIncomeLabel = [[UILabel alloc] init];
|
||||
_singleRoomIncomeLabel.font = [UIFont boldSystemFontOfSize:14];
|
||||
_singleRoomIncomeLabel.textColor = [ThemeColor mainTextColor];
|
||||
_singleRoomIncomeLabel.numberOfLines = 2;
|
||||
}
|
||||
return _singleRoomIncomeLabel;
|
||||
}
|
||||
@@ -179,6 +180,7 @@
|
||||
_roomIncomeLabel = [[UILabel alloc] init];
|
||||
_roomIncomeLabel.font = [UIFont boldSystemFontOfSize:14];
|
||||
_roomIncomeLabel.textColor = [ThemeColor mainTextColor];
|
||||
_roomIncomeLabel.numberOfLines = 2;
|
||||
}
|
||||
return _roomIncomeLabel;
|
||||
}
|
||||
|
@@ -564,7 +564,10 @@ static NSString *kSendGiftViewHidePunishNewIcon = @"kSendGiftViewHidePunishNewIc
|
||||
}
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[self.giftcollectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:currentPage inSection:0] atScrollPosition:UICollectionViewScrollPositionNone animated:YES];
|
||||
if(currentPage < self.datasource.count){
|
||||
[self.giftcollectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:currentPage inSection:0] atScrollPosition:UICollectionViewScrollPositionNone animated:YES];
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
|
@@ -40,8 +40,8 @@
|
||||
[self.engine enableAudioVolumeEvaluation:900];
|
||||
TRTCParams *params = [[TRTCParams alloc] init];
|
||||
UInt32 appId;
|
||||
NSString *curTtcKey = [[NSUserDefaults standardUserDefaults]valueForKey:@"kTrtcKey"];
|
||||
if(curTtcKey != nil){
|
||||
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);
|
||||
|
@@ -61,17 +61,17 @@
|
||||
///开始下载
|
||||
[[XPRoomFaceTool shareFaceTool] downFaceData];
|
||||
}
|
||||
NSString *trtcKey = initData[@"trtcKey"];
|
||||
NSString *curTtcKey = [[NSUserDefaults standardUserDefaults]valueForKey:@"kTrtcKey"];
|
||||
NSString *trtcAppId = initData[@"trtcAppId"];
|
||||
NSString *curTtcKey = [[NSUserDefaults standardUserDefaults]valueForKey:@"kTrtcAppId"];
|
||||
if(curTtcKey == nil){
|
||||
if(trtcKey != nil){
|
||||
[[NSUserDefaults standardUserDefaults]setValue:trtcKey forKey:@"kTrtcKey"];
|
||||
if(trtcAppId != nil){
|
||||
[[NSUserDefaults standardUserDefaults]setValue:trtcAppId forKey:@"kTrtcAppId"];
|
||||
[[NSUserDefaults standardUserDefaults]synchronize];
|
||||
}
|
||||
}else{
|
||||
if(![trtcKey isEqualToString:curTtcKey]){
|
||||
if(trtcKey != nil){
|
||||
[[NSUserDefaults standardUserDefaults]setValue:trtcKey forKey:@"kTrtcKey"];
|
||||
if(![trtcAppId isEqualToString:curTtcKey]){
|
||||
if(trtcAppId != nil){
|
||||
[[NSUserDefaults standardUserDefaults]setValue:trtcAppId forKey:@"kTrtcAppId"];
|
||||
[[NSUserDefaults standardUserDefaults]synchronize];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user