修复bug

This commit is contained in:
liyuhua
2023-11-01 10:36:21 +08:00
parent 1d930ab93b
commit d88839e58e
4 changed files with 17 additions and 13 deletions

View File

@@ -290,10 +290,10 @@
} else {
NSString * svgaString = receiveInfo.luckyGiftSvgaUrl.length > 0 ? receiveInfo.luckyGiftSvgaUrl : receiveInfo.gift.luckyGiftSvgaUrl;
NSURL * luckyGiftSvgaUrl = [NSURL URLWithString:svgaString];
if (luckyGiftSvgaUrl.absoluteString.length <= 0) {
luckyGiftSvgaUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@/room_lucky_gift_bg.svga", API_Image_URL]];
if (luckyGiftSvgaUrl.absoluteString.length > 0) {
[self playLuckyGiftEffect:luckyGiftSvgaUrl];
}
[self playLuckyGiftEffect:luckyGiftSvgaUrl];
}
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self receiveGift:receiveInfo];
@@ -313,10 +313,10 @@
} else {
NSString * svgaString = receiveInfo.luckyGiftSvgaUrl.length > 0 ? receiveInfo.luckyGiftSvgaUrl : receiveInfo.gift.luckyGiftSvgaUrl;
NSURL * luckyGiftSvgaUrl = [NSURL URLWithString:svgaString];
if (luckyGiftSvgaUrl.absoluteString.length <= 0) {
luckyGiftSvgaUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@/room_lucky_gift_bg.svga", API_Image_URL]];;
if (luckyGiftSvgaUrl.absoluteString.length > 0) {
[self playLuckyGiftEffect:luckyGiftSvgaUrl];
}
[self playLuckyGiftEffect:luckyGiftSvgaUrl];
}
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self receiveGift:receiveInfo];

View File

@@ -674,7 +674,11 @@ NSString * const kRoomShowTopicKey = @"kRoomShowTopicKey";
NIMChatroomNotificationMember *member = content.targets[0];
if (member.userId.integerValue == [AccountInfoStorage instance].getUid.integerValue) {
///
if(self.datasource.count > 0)return;
if(self.datasource.count > 0)
{
self.isLoadHistoryMessage = NO;
return;
}
[self handleFetchHistoryMessage:message];
} else {
self.isLoadHistoryMessage = NO;

View File

@@ -306,7 +306,7 @@
_titleView = [[JXCategoryTitleView alloc] init];
_titleView.delegate = self;
_titleView.titles = self.titles;
_titleView.backgroundColor = [UIColor whiteColor];
_titleView.backgroundColor = [UIColor clearColor];
_titleView.titleColor = UIColorFromRGB(0x767585);
_titleView.titleSelectedColor = UIColorFromRGB(0xFF285C);
_titleView.titleFont =kFontMedium(18);
@@ -344,10 +344,10 @@
if (!_contentView) {
_contentView = [[JXPagerView alloc] initWithDelegate:self listContainerType:0];
_contentView.mainTableView.gestureDelegate = self;
_contentView.backgroundColor = [UIColor whiteColor];
_contentView.listContainerView.backgroundColor = [UIColor whiteColor];
_contentView.listContainerView.listCellBackgroundColor = [UIColor whiteColor];
_contentView.mainTableView.backgroundColor = [UIColor whiteColor];
_contentView.backgroundColor = [UIColor clearColor];
_contentView.listContainerView.backgroundColor = [UIColor clearColor];
_contentView.listContainerView.listCellBackgroundColor = [UIColor clearColor];
_contentView.mainTableView.backgroundColor = [UIColor clearColor];
}
return _contentView;
}

View File

@@ -529,7 +529,7 @@
_sendWishView.layer.cornerRadius = kGetScaleWidth(8);
_sendWishView.layer.masksToBounds = YES;
_sendWishView.layer.borderWidth = 1;
_sendWishView.layer.borderColor = [UIColor whiteColor].CGColor;
_sendWishView.layer.borderColor = [UIColor colorWithWhite:1 alpha:0.7].CGColor;
}
return _sendWishView;
}