关闭开启我的特效

This commit is contained in:
fengshuo
2021-12-25 18:34:54 +08:00
parent 1abf40cea0
commit 11b5e15ddd
6 changed files with 39 additions and 3 deletions

View File

@@ -228,6 +228,7 @@
#pragma mark -
- (void)receiveDriveCarEnterRoom:(AttachmentModel *)attatchment {
if (!self.delegate.getRoomInfo.hasAnimationEffect) {return;}
NSString * effect = attatchment.data[@"effect"];
if (effect.length <= 0) return;
if (self.carEffectQueue.count == 0) {
@@ -316,6 +317,7 @@
#pragma mark -
- (void)receiveGiftHandleSendGiftAnimation:(AttachmentModel *)attachment {
if (!self.delegate.getRoomInfo.hasAnimationEffect) {return;}
GiftReceiveInfoModel * receiveInfo = [GiftReceiveInfoModel modelWithJSON:attachment.data];
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) {
@@ -667,7 +669,6 @@
///
- (void)receiveGift:(GiftReceiveInfoModel *)receiveInfo {
///CPU
RoomInfoModel * roomInfor = [self.delegate getRoomInfo];
if (receiveInfo.isLuckyBagGift) {
// SVGA