diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 3497e9fdd..19fe8de9e 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -132,9 +132,9 @@ class StudentWorkController < ApplicationController #-1 默认值 0全部正确并结束 2 超时 -2 编译错误 resultObj[:status] = -1 resultObj[:results] = result["results"].first #本次测试结果 - # if result["status"].to_i == -2 #编译错误 + if result["status"].to_i == -2 #编译错误 result["error_msg"] = result["error_msg"][0..2047] - # end + end resultObj[:error_msg] = result["error_msg"] #编译错误时的信息 #该状态用于存入CodeTests diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 9820f66ff..d9f532a48 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1262,7 +1262,7 @@ function description_showwords_ellipsis(id,num){ } -//by yk 弹框 tWidth = 580 tTop=30 tLeft=50 +//by yk 弹框 value:html代码或跳转其他页面代码 tWidth = 580 tTop=30 tLeft=50 function pop_up_box(value,tWidth,tTop,tLeft){ if(!tWidth){