diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index c2f3fb99a..dedbab55c 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -1123,7 +1123,7 @@ class ExercisesController < ApplicationController # 学生提交试卷 def commit_exercise - tip_exception(-1, "试卷已提交") if @answer_committed_user.commit_status == 1 + tip_exception(0, "试卷截止时间已到,系统已自动提交") if @answer_committed_user.commit_status == 1 ActiveRecord::Base.transaction do begin can_commit_exercise = false