修改了房间公屏无法发出的问题

This commit is contained in:
fengshuo
2022-08-25 21:46:54 +08:00
parent 77f57732d4
commit cbe5d9962f
2 changed files with 7 additions and 1 deletions

View File

@@ -428,6 +428,7 @@
self.graffitiView.hidden = NO; self.graffitiView.hidden = NO;
self.graffitiView.price = info.goldPrice; self.graffitiView.price = info.goldPrice;
self.giftBarView.drawGiftCount = 0; self.giftBarView.drawGiftCount = 0;
self.graffitiView.selectUidNumber = self.userView.selectUserArray.count;
[[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:info.giftUrl] options:SDWebImageProgressiveLoad progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) { [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:info.giftUrl] options:SDWebImageProgressiveLoad progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
if (error == nil && image) { if (error == nil && image) {
self.graffitiView.image = image; self.graffitiView.image = image;

View File

@@ -91,7 +91,12 @@
[XCHUDTool showErrorWithMessage:@"房间公屏已关闭"]; [XCHUDTool showErrorWithMessage:@"房间公屏已关闭"];
return; return;
} }
self.inputTextView = [XPRoomSendTextView showTextView:[UIApplication sharedApplication].delegate.window delegate:self.delegate atUid:nil atNick:nil]; if (self.delegate.getRoomInfo.type == RoomType_Anchor) {
self.inputTextView = [XPRoomSendTextView showTextView:self.superview.superview delegate:self.delegate atUid:nil atNick:nil];
} else {
self.inputTextView = [XPRoomSendTextView showTextView:self.superview delegate:self.delegate atUid:nil atNick:nil];
}
} }
break; break;