diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 27b6ed272..d6300c6bf 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -190,7 +190,7 @@ class StudentWorkController < ApplicationController status = student_work_test.status resultObj[:testid] = student_work_test.id end - + student_work.save #超时或编译错误则直接返回了并存入数据库 if resultObj[:status] == 2 || resultObj[:status] == -2 || index == @homework.homework_tests.size if status == 0