房间内PK非管理员点击pk面板的时候弹出报名

This commit is contained in:
fengshuo
2022-05-24 21:04:54 +08:00
parent ad31f49823
commit f8fb7e2dfa
6 changed files with 92 additions and 30 deletions

View File

@@ -294,7 +294,7 @@
#pragma mark - PK
- (void)configRoomPKPanelView:(BOOL)isEnter {
RoomInfoModel * roomInfo = self.delegate.getRoomInfo;
self.roompkPanelView.roomId = [NSString stringWithFormat:@"%ld", roomInfo.roomId];
self.roompkPanelView.roomInfo = roomInfo;
if (roomInfo.roomModeType == RoomModeType_Open_PK_Mode) {
if (!self.roompkPanelView.superview) {
[self addSubview:self.roompkPanelView];
@@ -303,12 +303,10 @@
make.top.mas_equalTo(self).offset(35 + (58 + 5 + 6 + 12) + 38 + (55 + 10 + 12 + 5+16) * 2 + 15 * 2 + kNavigationHeight + 5);
}];
}
NSString * roomId = [NSString stringWithFormat:@"%ld", roomInfo.roomId];
if (isEnter) {
self.roompkPanelView.roomUid = [NSString stringWithFormat:@"%ld", roomInfo.uid];
self.roompkPanelView.roomId = roomId;
[self.roompkPanelView enterRoomGetRoomPKDetailInfo];
}
NSString * roomId = [NSString stringWithFormat:@"%ld", roomInfo.roomId];
NSString * uid = [AccountInfoStorage instance].getUid;
NIMChatroomMembersByIdsRequest *request = [[NIMChatroomMembersByIdsRequest alloc]init];
request.roomId = roomId;