提交
This commit is contained in:
@@ -141,14 +141,8 @@
|
||||
QXRoomChatListModel *model = [QXRoomChatListModel yy_modelWithJSON:msg.Text];
|
||||
model.messageType = QXRoomChatMessageTypeSystem;
|
||||
NSString *jia_jia = [NSString stringWithFormat:@"%@",msg.Text[@"jia_jia"]];
|
||||
if ([self.exRoomId isExist] && [self.roomId isExist]) {
|
||||
if (!isSuperRoom) {
|
||||
/// 酒吧房小黑屋不管大房间的特效
|
||||
if ([groupId isEqualToString:self.groupId]){
|
||||
if (([jia_jia hasPrefix:@"http"] || [jia_jia hasPrefix:@"https"]) && ([jia_jia hasSuffix:@"svga"] || [jia_jia hasSuffix:@"mp4"])) {
|
||||
[[QXGiftPlayerManager shareManager] displayChatEffectView:jia_jia];
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if (([jia_jia hasPrefix:@"http"] || [jia_jia hasPrefix:@"https"]) && ([jia_jia hasSuffix:@"svga"] || [jia_jia hasSuffix:@"mp4"])) {
|
||||
[[QXGiftPlayerManager shareManager] displayChatEffectView:jia_jia];
|
||||
}
|
||||
@@ -179,21 +173,14 @@
|
||||
/// 收到礼物
|
||||
QXRoomChatListModel *model = [QXRoomChatListModel yy_modelWithJSON:msg.Text];
|
||||
model.messageType = QXRoomChatMessageTypeGift;
|
||||
if ([self.exRoomId isExist] && [self.roomId isExist]) {
|
||||
if (!isSuperRoom) {
|
||||
/// 酒吧房小黑屋不管大房间的特效
|
||||
if ([groupId isEqualToString:self.groupId]){
|
||||
NSArray *arr = [model.GiftInfo.play_image componentsSeparatedByString:@","];
|
||||
[[QXGiftPlayerManager shareManager] displayFullEffectViewWithMorePlayImages:arr];
|
||||
[[QXGiftDisplayManager sharedManager] receiveGift:model];
|
||||
}
|
||||
}else{
|
||||
if ([model.GiftInfo.play_image isExist]) {
|
||||
NSArray *arr = [model.GiftInfo.play_image componentsSeparatedByString:@","];
|
||||
[[QXGiftPlayerManager shareManager] displayFullEffectViewWithMorePlayImages:arr];
|
||||
}
|
||||
[[QXGiftDisplayManager sharedManager] receiveGift:model];
|
||||
}
|
||||
|
||||
if (model.ToUserInfos.count>0) {
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(didRecieveGiftWithWithUserInfos:)]) {
|
||||
[self.delegate didRecieveGiftWithWithUserInfos:model.ToUserInfos];
|
||||
|
||||
Reference in New Issue
Block a user