修复bug

This commit is contained in:
liyuhua
2023-09-27 16:06:18 +08:00
parent a51b4778e3
commit 954196efa5
4 changed files with 13 additions and 8 deletions

View File

@@ -352,8 +352,8 @@
} else if(attachment.first == CustomMessageType_Graffiti_Star_Kitchen){///
if(attachment.second == Custom_Message_Sub_Star_Kitchen_Room)return;
NSInteger uid = 0;
if(attachment.data[@"uid"] != nil){
uid = [attachment.data[@"uid"] integerValue];
if(attachment.data[@"roomUid"] != nil){
uid = [attachment.data[@"roomUid"] integerValue];
}
if(attachment.second == Custom_Message_Sub_Star_Kitchen_Server && self.delegate.getRoomInfo.uid != uid){
return;
@@ -363,7 +363,7 @@
[self receiveTreasureFairyGiftHighLevel:attachment];
}else if (attachment.first == CustomMessageType_Tarot && (attachment.second == Custom_Message_Sub_Tarot_Advanced || attachment.second == Custom_Message_Sub_Tarot_Intermediate)){
PIBaseAnimationViewModel *giftNotifyInfo = [PIBaseAnimationViewModel modelWithJSON:attachment.data];
if(attachment.second == Custom_Message_Sub_Tarot_Intermediate && self.delegate.getRoomInfo.uid != giftNotifyInfo.uid){
if(attachment.second == Custom_Message_Sub_Tarot_Intermediate && self.delegate.getRoomInfo.uid != giftNotifyInfo.roomUid.integerValue){
return;
}
[self receiveTarotBanner:attachment];