From 251465ceb5f78793d5a3bd0098ea8a0603fbc431 Mon Sep 17 00:00:00 2001 From: cxt Date: Wed, 19 Oct 2016 19:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=81=E5=8F=AF=20=E7=BC=96=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/student_work_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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