移除测试代码
This commit is contained in:
@@ -241,7 +241,7 @@
|
||||
}
|
||||
|
||||
- (void)updateDoneButtonState {
|
||||
if (self.selectRoomInfo && self.pkDuration >= 0 && self.pkDuration <= 180) {
|
||||
if (self.selectRoomInfo && self.pkDuration >= 5 && self.pkDuration <= 180) {
|
||||
self.doneButton.enabled = YES;
|
||||
} else {
|
||||
self.doneButton.enabled = NO;
|
||||
@@ -294,7 +294,7 @@
|
||||
if (count > 180) {
|
||||
[self showErrorToast:YMLocalizedString(@"XPAcrossRoomPKViewController2")];
|
||||
}
|
||||
else if(count < -5) {
|
||||
else if(count < 5) {
|
||||
[self showErrorToast:YMLocalizedString(@"XPAcrossRoomPKViewController3")];
|
||||
}
|
||||
self.pkDuration = textField.text.integerValue;
|
||||
|
@@ -229,7 +229,7 @@
|
||||
}
|
||||
|
||||
- (void)updateDoneButtonState {
|
||||
if (self.selectRoomInfo && self.pkDuration >= 0 && self.pkDuration <= 30) {
|
||||
if (self.selectRoomInfo && self.pkDuration >= 5 && self.pkDuration <= 30) {
|
||||
self.doneButton.enabled = YES;
|
||||
} else {
|
||||
self.doneButton.enabled = NO;
|
||||
@@ -286,7 +286,7 @@
|
||||
[self showErrorToast:YMLocalizedString(@"XPAnchorPKViewController2")];
|
||||
textField.text = @"30";
|
||||
}
|
||||
else if(count < -5) {
|
||||
else if(count < 5) {
|
||||
[self showErrorToast:YMLocalizedString(@"XPAnchorPKViewController3")];
|
||||
}
|
||||
self.pkDuration = textField.text.integerValue;
|
||||
|
@@ -815,15 +815,15 @@
|
||||
if (attachment.data[@"amicStatus"] != nil){
|
||||
model.aMicStatus = [attachment.data[@"amicStatus"] intValue];
|
||||
}
|
||||
// if (model.isForce) {
|
||||
if (model.isForce) {
|
||||
XPAcrossRoomPKForceEndResultView *view = [[XPAcrossRoomPKForceEndResultView alloc] initWithFrame:CGRectMake(0, 0, 290, 211)];
|
||||
view.data = model;
|
||||
[TTPopup popupView:view style:TTPopupStyleAlert];
|
||||
// } else {
|
||||
// XPAcrossRoomPKResultView *view = [[XPAcrossRoomPKResultView alloc] initWithFrame:CGRectMake(0, 0, 310, 363)];
|
||||
// view.data = model;
|
||||
// [TTPopup popupView:view style:TTPopupStyleAlert];
|
||||
// }
|
||||
} else {
|
||||
XPAcrossRoomPKResultView *view = [[XPAcrossRoomPKResultView alloc] initWithFrame:CGRectMake(0, 0, 310, 363)];
|
||||
view.data = model;
|
||||
[TTPopup popupView:view style:TTPopupStyleAlert];
|
||||
}
|
||||
}
|
||||
break;
|
||||
///个播跨房PK
|
||||
|
Reference in New Issue
Block a user