修复了进房动画的问题
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#import "RoomHostDelegate.h"
|
||||
#import "RoomGuestDelegate.h"
|
||||
|
||||
#import "XCHUDTool.h"
|
||||
|
||||
UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
|
||||
UIKIT_EXTERN NSString * const kRoomMiniNotificationKey;
|
||||
@@ -205,6 +206,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
if (self.isMiniEnter) {
|
||||
[self initEnterRoomSuccess:[XPRoomMiniManager shareManager].getRoomInfo user:[XPRoomMiniManager shareManager].getUserInfo];
|
||||
} else {
|
||||
[XCHUDTool showAnchorLoading:self.navigationController.view];
|
||||
[self.presenter initEnterRoom:self.roomUid user:[AccountInfoStorage instance].getUid];
|
||||
}
|
||||
/// 公屏 福袋礼物爆出的礼物 需要依赖 当前房间中的礼物列表 需要提前获取礼物列表 可以拿到礼物 没有想到别的方法去解决这个问题 有需要改的在修改吧
|
||||
@@ -665,13 +667,13 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
#pragma mark - XPRoomProtocol
|
||||
- (void)initEnterRoomSuccess:(RoomInfoModel *)roomInfo user:(UserInfoModel *)userInfo {
|
||||
[self hideHUD];
|
||||
userInfo.fromUid = self.fromUid;
|
||||
userInfo.fromType = self.fromType;
|
||||
userInfo.fromNick = self.fromNick;
|
||||
self.hasAnimationEffect = roomInfo.hasAnimationEffect;
|
||||
self.roomInfo = roomInfo;
|
||||
self.userInfo = userInfo;
|
||||
[self hideHUD];
|
||||
if (roomInfo.type == RoomType_Anchor) {//个播房,获取下一个房间
|
||||
[self handleInitAnchorRoom];
|
||||
[self showAnchorScrollTipView];
|
||||
@@ -735,6 +737,8 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
|
||||
- (void)openRoomSuccess:(RoomInfoModel *)roomInfo {
|
||||
[XCHUDTool hideHUDInView:self.navigationController.view];
|
||||
[self hideHUD];
|
||||
self.roomInfo = roomInfo;
|
||||
if (roomInfo.type == RoomType_Anchor) {
|
||||
[self handleInitAnchorRoom];
|
||||
@@ -752,6 +756,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
|
||||
- (void)enterRoomSuccess:(NIMChatroom *)chatRoom {
|
||||
[XCHUDTool hideHUDInView:self.navigationController.view];
|
||||
// room/get中的房间在线人数 是定时更新的 不是及时刷新
|
||||
self.roomInfo.onlineNum = chatRoom.onlineUserCount;
|
||||
[self.stageView onRoomEntered];
|
||||
@@ -766,6 +771,7 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
}
|
||||
|
||||
- (void)enterRoomFail:(NSInteger)code {
|
||||
[XCHUDTool hideHUDInView:self.navigationController.view];
|
||||
[self hideHUD];
|
||||
if (code == 13003) {
|
||||
[self showErrorToast:@"您已被管理员拉黑"];
|
||||
|
Reference in New Issue
Block a user