diff --git a/xplan-ios/Main/Tabbar/View/TabbarViewController.m b/xplan-ios/Main/Tabbar/View/TabbarViewController.m index 2307a8cd..9afff106 100644 --- a/xplan-ios/Main/Tabbar/View/TabbarViewController.m +++ b/xplan-ios/Main/Tabbar/View/TabbarViewController.m @@ -790,6 +790,9 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; #pragma mark - 年度礼物飘屏 - (void)receiveBroadcastGift:(AttachmentModel *)attachment { XPRoomGiftBroadCastModel *giftNotifyInfo = [XPRoomGiftBroadCastModel modelWithJSON:attachment.data]; + if (!giftNotifyInfo.ceremonyGift) { + return; + } if (self.giftBroadcastQueue.count == 0) { [self createGiftBroadcastViewAnimation:giftNotifyInfo]; } @@ -801,7 +804,7 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey; view.delegate = self; view.frame = CGRectMake(KScreenWidth, 35 + statusbarHeight, KScreenWidth, 150); view.model = giftModel; - [self.view addSubview:view]; + [[XCCurrentVCStackManager shareManager].getCurrentVC.view addSubview:view]; [self beginGiftBraodcastViewAnimation:view notifyStaySecond:giftModel.notifyStaySecond]; }