2.3.31 finish
This commit is contained in:
@@ -792,11 +792,11 @@ XPRoomGraffitiGiftAnimationViewDelegate
|
||||
attachment.second == Custom_Message_Sub_AllBatchMicroLuckySend ||
|
||||
attachment.second == Custom_Message_Sub_Gift_LuckySend) {
|
||||
NSString * giftId = [NSString stringWithFormat:@"%ld", receiveInfo.luckyGiftList.giftList.firstObject.giftId];
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:giftId];
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:giftId inRoom:@(receiveInfo.roomUid).stringValue];
|
||||
}
|
||||
|
||||
if (giftInfo == nil) {
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:receiveInfo.giftId];
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:receiveInfo.giftId inRoom:@(receiveInfo.roomUid).stringValue];
|
||||
}
|
||||
if (giftInfo == nil) {
|
||||
giftInfo = [receiveInfo.displayGift xpSafeObjectAtIndex:0];
|
||||
@@ -1358,18 +1358,13 @@ XPRoomGraffitiGiftAnimationViewDelegate
|
||||
} else {
|
||||
NSString *userName = model.nick;
|
||||
if (model.cpList.count > 0 && model.screenType < 3) {
|
||||
for (RoomEnterCPListModel *cp in model.cpList) {
|
||||
NSString *cpName = cp.cpNick;
|
||||
NSString *cpLevelTitle = [NSString stringWithFormat:@"RoomEffect_CP_lv_%@", @(cp.cpLevel)];
|
||||
NSString *title = [NSString stringWithFormat:YMLocalizedString(@"1.0.37_text_31"), userName, YMLocalizedString(cpLevelTitle), cpName];
|
||||
|
||||
NSDictionary * dic= @{@"title":title,
|
||||
@"experLevelSeq":[NSString stringWithFormat:@"%ld", model.experLevelSeq],
|
||||
@"effectPath" : @"",
|
||||
@"isCP":@(YES)
|
||||
};
|
||||
[self.enterRoomAnimationQueue addObject:dic];
|
||||
}
|
||||
NSString *title = [NSString stringWithFormat:YMLocalizedString(@"XPRoomAnimationView0"), userName];
|
||||
NSDictionary * dic= @{@"title":title,
|
||||
@"experLevelSeq":[NSString stringWithFormat:@"%ld", model.experLevelSeq],
|
||||
@"effectPath" : @"",
|
||||
@"isCP":@(YES)
|
||||
};
|
||||
[self.enterRoomAnimationQueue addObject:dic];
|
||||
} else {
|
||||
NSString *title = [NSString stringWithFormat:YMLocalizedString(@"XPRoomAnimationView0"), userName];
|
||||
|
||||
@@ -2824,10 +2819,10 @@ XPRoomGraffitiGiftAnimationViewDelegate
|
||||
GiftInfoModel * giftInfo = receiveInfo.gift ? receiveInfo.gift : receiveInfo.giftInfo;
|
||||
if (attachment.second == Custom_Message_Sub_AllMicroLuckySend || attachment.second == Custom_Message_Sub_AllBatchMicroLuckySend || attachment.second == Custom_Message_Sub_Gift_LuckySend) {
|
||||
NSString * giftId = [NSString stringWithFormat:@"%ld", receiveInfo.luckyGiftList.giftList.firstObject.giftId];
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:giftId];
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:giftId inRoom:@(receiveInfo.roomUid).stringValue];
|
||||
}
|
||||
if (giftInfo == nil) {
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:receiveInfo.giftId];
|
||||
giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:receiveInfo.giftId inRoom:@(receiveInfo.roomUid).stringValue];
|
||||
}
|
||||
|
||||
///在最外面判断是否可以拿到那个礼物 后面使用就不用判断了
|
||||
@@ -2913,7 +2908,7 @@ XPRoomGraffitiGiftAnimationViewDelegate
|
||||
- (void)startGraffitiGiftAnimation:(AttachmentModel *)model {
|
||||
NSDictionary * dic = model.data;
|
||||
NSNumber * giftId = dic[@"giftId"];
|
||||
GiftInfoModel * giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:giftId.stringValue];
|
||||
GiftInfoModel * giftInfo = [[XPGiftStorage shareStorage] findGiftInfo:giftId.stringValue inRoom:@""];
|
||||
NSArray * array = dic[@"drawFixedArray"];
|
||||
if (giftInfo.giftUrl.length > 0 && array.count > 0) {
|
||||
[[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:giftInfo.giftUrl] options:SDWebImageProgressiveLoad progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
|
||||
|
Reference in New Issue
Block a user