房间PK根据送礼物的人数开始的话 显示异常的问题
This commit is contained in:
@@ -317,7 +317,7 @@
|
||||
[attribute appendAttributedString:[self createTextAttribute:result color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
}
|
||||
}
|
||||
if (team.score > 0) {
|
||||
if (team.protector > 0) {
|
||||
[attribute appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"\n"]];
|
||||
NSString * teamStr = [NSString stringWithFormat:@"蓝队守护者:%@ \n 蓝队守护值: %@ \n 红队守护者: %@ \n 红队守护值: %@", blueTeam.protector.nick.length > 0 ? blueTeam.protector.nick : @"", [[NSNumber numberWithLongLong:blueTeam.protecScore] stringValue], redTeam.protector.nick.length > 0 ? redTeam.protector.nick : @"", [[NSNumber numberWithLongLong:redTeam.protecScore] stringValue]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:teamStr color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
@@ -386,7 +386,7 @@
|
||||
|
||||
- (void)showRoomPKResult:(NSDictionary *)dic {
|
||||
RoomPKInfoModel * pkInfo = [RoomPKInfoModel modelWithDictionary:dic];
|
||||
if (pkInfo.pkStatus == RoomPKStatusType_End) {
|
||||
if (pkInfo.pkStatus == RoomPKStatusType_End || pkInfo.pkStatus == RoomPKStatusType_ReStart) {
|
||||
XPRoomPKResultView * result = [[XPRoomPKResultView alloc] init];
|
||||
result.roomPKResultInfoModel = pkInfo;
|
||||
[TTPopup popupView:result style:TTPopupStyleAlert];
|
||||
|
Reference in New Issue
Block a user