wangwei 5 سال پیش
والد
کامیت
b6a18c3d41

+ 2 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/provider/ExamStudentCloudServiceProvider.java

@@ -148,7 +148,8 @@ public class ExamStudentCloudServiceProvider extends ControllerSupport
 			throw new StatusException("210101", "specialBeginTime & specialEndTime  wrong");
 		}
 
-		if (2 == BooleanUtil.countTrue(null != specialBeginTime, null != specialEndTime)) {
+		int trueNum = BooleanUtil.countTrue(null != specialBeginTime, null != specialEndTime);
+		if (0 == trueNum || 2 == trueNum) {
 			ExamSpecialSettingsInfo examSpecialInfo = new ExamSpecialSettingsInfo();
 			examSpecialInfo.setBeginTime(specialBeginTime);
 			examSpecialInfo.setEndTime(specialEndTime);