From 9152df337f1801a2eececd5bcb71e05b2db707ee Mon Sep 17 00:00:00 2001 From: fengshuo <963787902@qq.com> Date: Thu, 29 Dec 2022 17:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=B9=B4=E5=BA=A6?= =?UTF-8?q?=E7=A4=BC=E7=89=A9=E5=9C=A8=E6=88=BF=E9=97=B4=E5=86=85=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xplan-ios/Main/Tabbar/View/TabbarViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]; }