移除测试代码

This commit is contained in:
eggmanQQQ
2024-06-18 13:54:54 +08:00
parent 1699ebc926
commit c4d0b1c33c
3 changed files with 10 additions and 10 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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