wangwei 7 years ago
parent
commit
7f03c13593

+ 6 - 6
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/service/examwork/api/ExamApi.java

@@ -143,13 +143,13 @@ public class ExamApi extends ControllerSupport {
 	public Exam addExam(HttpServletRequest request, @RequestBody Exam exam) {
 		
 		if (null != exam.getBeforeExamRemark() && exam.getBeforeExamRemark().length() > 250000) {
-			throw new StatusException("EXAMWORK-001002", "考前说明内容过大!");
+			throw new StatusException("EXAMWORK-001002", "考前说明内容过大");
 		}
 		if (null != exam.getAfterExamRemark() && exam.getAfterExamRemark().length() > 250000) {
-			throw new StatusException("EXAMWORK-001002", "考后说明内容过大!");
+			throw new StatusException("EXAMWORK-001002", "考后说明内容过大");
 		}
 		if (null != exam.getCheatingRemark() && exam.getCheatingRemark().length() > 250000) {
-			throw new StatusException("EXAMWORK-001002", "作弊说明内容过大!");
+			throw new StatusException("EXAMWORK-001002", "作弊说明内容过大");
 		}
 		
 		AccessUser accessUser = (AccessUser) request.getAttribute("accessUser");
@@ -176,13 +176,13 @@ public class ExamApi extends ControllerSupport {
 		}
 		
 		if (null != exam.getBeforeExamRemark() && exam.getBeforeExamRemark().length() > 250000) {
-			throw new StatusException("EXAMWORK-001002", "考前说明内容过大!");
+			throw new StatusException("EXAMWORK-001002", "考前说明内容过大");
 		}
 		if (null != exam.getAfterExamRemark() && exam.getAfterExamRemark().length() > 250000) {
-			throw new StatusException("EXAMWORK-001002", "考后说明内容过大!");
+			throw new StatusException("EXAMWORK-001002", "考后说明内容过大");
 		}
 		if (null != exam.getCheatingRemark() && exam.getCheatingRemark().length() > 250000) {
-			throw new StatusException("EXAMWORK-001002", "作弊说明内容过大!");
+			throw new StatusException("EXAMWORK-001002", "作弊说明内容过大");
 		}
 		
 		Exam ret = examService.saveExam(exam);