袁可 编程

This commit is contained in:
cxt 2016-10-19 19:41:02 +08:00
parent 85f489eb97
commit 251465ceb5
1 changed files with 1 additions and 1 deletions

View File

@ -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