房间PK一开始 点击加入和排麦的时候toast

This commit is contained in:
fengshuo
2022-05-29 14:31:00 +08:00
parent 33b9873afd
commit b3c2711ae6
8 changed files with 104 additions and 73 deletions

View File

@@ -15,6 +15,7 @@
#import "ClientConfig.h"
#import "NetImageView.h"
#import "TTPopup.h"
#import "XCHUDTool.h"
///Model
#import "UserInfoModel.h"
#import "RoomInfoModel.h"
@@ -355,6 +356,10 @@
}
- (void)didTapJoinDatingRecognizer {
if (self.hostDelegate.getRoomInfo.roomModeType == RoomModeType_Open_PK_Mode && self.hostDelegate.isRoomPKPlaying) {
[XCHUDTool showErrorWithMessage:@"PK已开始暂时无法排麦"];
return;
}
NIMChatroomMembersByIdsRequest *request = [[NIMChatroomMembersByIdsRequest alloc]init];
request.roomId = [NSString stringWithFormat:@"%ld", self.hostDelegate.getRoomInfo.roomId];
request.userIds = @[[AccountInfoStorage instance].getUid];