袁可 编程
This commit is contained in:
parent
85f489eb97
commit
251465ceb5
|
@ -190,7 +190,7 @@ class StudentWorkController < ApplicationController
|
||||||
status = student_work_test.status
|
status = student_work_test.status
|
||||||
resultObj[:testid] = student_work_test.id
|
resultObj[:testid] = student_work_test.id
|
||||||
end
|
end
|
||||||
|
student_work.save
|
||||||
#超时或编译错误则直接返回了并存入数据库
|
#超时或编译错误则直接返回了并存入数据库
|
||||||
if resultObj[:status] == 2 || resultObj[:status] == -2 || index == @homework.homework_tests.size
|
if resultObj[:status] == 2 || resultObj[:status] == -2 || index == @homework.homework_tests.size
|
||||||
if status == 0
|
if status == 0
|
||||||
|
|
Loading…
Reference in New Issue